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

后端 未结 13 1396
醉话见心
醉话见心 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:48

    I'll still share my short answer humbly, knowing that I'm super late to answer this question.

    Here's, a simple and clean explanation that solved my issue

    Also, since I was using the SSH key I used the following command:

    • $ git remote add origin git@github.com:{your-username}/{your-remote-repo-branch}

    for instance it would look like:

    • $ git remote add origin git@github.com:aniketrb-github/microservices.git

    If you are using the HTTPS URL, refer to the answer provided by @sunny-jim above.

    Do correct me if I'm wrong. Thanks.

提交回复
热议问题