`

git 异常 Not a git repository (or any of the parent directories): .git

git 
阅读更多

解决 $ git remote add origin git@github.com:yourName/yourRepo.git 报错

fatal: Not a git repository (or any of the parent directories): .git

出错原因:要上传的目录没有初始化;

解决办法:git init


 

  • 大小: 51.1 KB
分享到:
评论

相关推荐

    解决git:fatal:Unable to create”…/.git/index.lock” 的错误

    问题描述: 在使用git 进行提交时, 出现上面这个报错, 导致无法提交. 报错大致意思就是创建index.lock文件失败,因为已经存在index.lock文件了. index.lock文件是在.git下面, 而.git是一般是隐藏的, 那么可以通过以下...

    解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法

    今天Git push的时候 fatal:remote error: You can't push to git://github.com/username/*.git Use git@github.com:username/*.git 看来我是没有权限push啊。 解决方法: git remote rm origin git remote add ...

    Learn.Git.in.a.Month.of.Lunches.1617

    Learn Git in a Month of Lunches introduces the discipline of source code control using Git. Helpful for both newbies who have never used source control and busy pros, this book concentrates on the ...

    Git.Mastering.Version.Control.pdf

    This course starts with an introduction to version control systems before you delve deeply into the essentials of Git. This serves as a primer for the topics to follow such as branching and merging, ...

    Jump.Start.Git.0994182651

    Get a Jump Start on version control with Git today! Most engineers we meet prefer Git over other distributed version control systems. These systems let you store different versions of project files ...

    net-tools-2.0-0.25.20131004git.el7.x86_64.rpm

    用户Linux系统的net-tools-2.0-0.25.20131004git.el7.x86_64.rpm文件

    Bonobo.Git.Server

    Bonobo.Git.Server本地服务器配置安装包加说明。。。。。。

    Git.Best.Practices.Guide.1783553731

    This book is invaluable to anyone who wants a thorough reference guide to go back to every time they have questions about any feature of Git. Table of Contents Chapter 1. Starting a Git Repository ...

    执行git push会遇到的问题

    (2)出现not a git repository (or any of the parent directories): .git 原因是该文件目录下没有.git 解决方法: 1、切换到有.git的目录下再执行git push 2、或输入git.init生成一个.git (3)出现 ! [rejected]...

    Git.Version.Control.Cookbook.1782168451

    As you progress through this book, you will learn how you can automate the usual Git processes by utilizing the hook system built into Git. The book also covers advanced repository management, ...

    windows git 删除版本控制 清理.git文件夹 批量处理

    Windows系统条件下,批量清除git版本管理配置文件,批量删除.git文件夹 使用方法:下载将该脚本文件,拷贝到要清除的项目的文件夹目录下,双击bat文件即可。

    Professional.Git.epub

    More than just a development manual, this book helps you get into the Git mindset—extensive discussion of corollaries to traditional systems as well as considerations unique to Git help you draw ...

    aixtools.git.2.10.1.bundle.tar.bz2

    aix7.2系统下安装git客户端

    Learn.Git.in.a.Month.of.Lunches.2015.9.pdf

    Learn.Git.in.a.Month.of.Lunches.2015.9.pdf

    Git.for.Teams.1491911182

    Yes, this is a book about the popular version control system, Git. But unlike just about every other book written about Git, it doesn’t start with how to install the software and create your first ...

    Git指令的Shell脚本

    modified: Git.sh modified: PyNote/PyNote_2.md no changes added to commit (use "git add" and/or "git commit -a") Please choose the first letter of options. [Add|Commit|Diff|Fetch|Exit|Help|Log|...

    Git.zip Git.zip Git.zip Git.zip Git.zip

    Git.zipGit.zip

    git 2.7.3 for windows 64bit

    When trying to modify a repository config outside of any Git worktree, git config no longer creates a .git/ directory but prints an appropriate error message instead. A new version of Git for Windows'...

    Jenkins拉代码提示端口错误

    stderr: Failed to add the host to the list of known hosts (/var/lib/jenkins/.ssh/known_hosts). Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have ...

    git 视频教程

    git视频教程.1.Git 命令 - git help、git config.mp4 git视频教程.2.Git 命令 - git init、git clone.mp4 git视频教程.3.1.Git 命令 - git add、git status.mp4 git视频教程.3.2.Git 命令 - git diff、git difftool....

Global site tag (gtag.js) - Google Analytics