`

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
分享到:
评论

相关推荐

    Manning.Git.in.Practice.2014.9.pdf

    - **Ignoring Files**: To ignore files or directories, create a `.gitignore` file and list the files or patterns you want Git to ignore. - **Moving and Renaming Files**: Git can track file renames. Use...

    AdditionGameMethodsArraysLoops

    fatal: Not a git repository (or any of the parent directories): .git D:\KLD_CS1_WorkSpace\AdditionGameMethodsArraysLoops>git init Initialized empty Git repository in D:/KLD_CS1_WorkSpace/...

    Git-2.21.0-64-bit.zip

    "checking out paths out of the index and/or a tree-ish to work on advancing the current history" out of the single "git checkout" command. * "git branch --list" learned to always output the ...

    mern-itinerary

    例子: /应该改为/contacts不是/通过输入git status确认您尚未在github存储库中: 好的: fatal: not a git repository (or any of the parent directories): .git错误/移动到计算机上的其他位置On branch ...

    git中文手册

    3. **常见问题及解决方案**:如遇到常见的错误提示,如“fatal: Not a git repository (or any of the parent directories)”表示当前目录没有被初始化为Git仓库;“error: Your local changes to the following ...

    git安装教程

    记得在安装过程中,确保选择“Use Git from the Windows Command Prompt”和“Associate with .git directories”选项,以便在Windows资源管理器中识别Git仓库。 **三、注册GitHub账户** 访问GitHub官网: > ...

    执行git push会遇到的问题

    2. **问题:not a git repository (or any of the parent directories): .git** 这个错误表示当前目录或其任何父目录下没有找到`.git`文件,即Git仓库的标志。这可能是由于你不在正确的项目目录下。 解决方法: ...

    逆向工程权威指南 英文版

    Take a look on GitHub repository. For example, main_EN.tex for English, main_RU.tex for Russian, etc. So just find filename_EN.tex file you want to translate, copy to filename_XX.tex (where XX is your...

    Android Studio Essentials

    3. **Version Control Systems (VCS)**: Android Studio supports popular VCS like Git, allowing you to manage changes, collaborate with others, and maintain a history of modifications. 4. **Debugger**: ...

    Linux for Developers

    * **Git Fundamentals:** Presents a comprehensive section on the powerful Git version control system, teaching skills that can be used not only in Linux but also in many other environments. * **...

    meta-git:用于元数据的 git 插件

    元git 管理您的元存储库和子 git 存储库。 用于git 插件 用法 ➜ meta git Usage: meta-git [options] [command] Commands: branch List, create, or delete branches checkout Switch branches or restore ...

    phpstorm-settings:PHPStorm IDE设置

    默认情况下,设置是以XML文件的形式存储在用户的个人目录下,但可以通过`File` > `Settings` > ` Appearance & Behavior` > `System Settings` > `Settings Repository`来启用设置存储库,这样就可以将设置版本化,...

Global site tag (gtag.js) - Google Analytics