Git push error: “origin does not appear to be a git repository”

后端 未结 13 1397
醉话见心
醉话见心 2020-11-29 00:28

I am following the instructions given here to create a Git repository. All went well until the last line:

$ git push -u origin master  
13条回答
  •  暖寄归人
    2020-11-29 00:34

    Your config file does not include any references to "origin" remote. That section looks like this:

    [remote "origin"]
        url = git@foo.com:repository.git
        fetch = +refs/heads/*:refs/remotes/origin/*
    

    You need to add the remote using git remote add before you can use it.

提交回复
热议问题