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

后端 未结 5 1455
感动是毒
感动是毒 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:24

    Just run the following command on your terminal

    $ git remote and upstream {your upstream repository link here}

    After this command run :

    git remote -v

    this command will show you your github repository path and upstream repository path .

    example output:

    origin  https://github.com/ {Your Github username} / {repository name} (fetch)
    origin  https://github.com/ {Your Github username} / {repository name} (push)
    
    upstream    https://github.com/ {Upstream github username} / {repository name} (fetch)
    upstream    https://github.com/ {Upstream github username} / {repository name} (push)

提交回复
热议问题