Git Error : 'upstream' does not appear to be a git repository

后端 未结 5 1470
感动是毒
感动是毒 2021-01-31 14:06

I\'m very new to Git, so facing some issues with it correct usage. Here is my scenario.

I have a fork of my master repository and cloned it into my local. In that, I hav

5条回答
  •  感情败类
    2021-01-31 14:37

    So there's a few things to clarify:

    • Upstream is the conceptual name of the remote repository (or repositories) that exist. Most projects only have one upstream repository.

    • The name of the upstream repository can vary from project to project, but by convention is origin.

    That said, I'm willing to bet that you got the name of your upstream repo and the upstream repo concept confused, and you should be executing git fetch origin. Verify with git remote; use the appropriate name from that list.

    However, if you only have one upstream repo, performing git fetch will accomplish the same thing.

提交回复
热议问题