Git remote repository tutorial and with set-url origin upstream example #OpenSource #DevRel

Eddie Jaoude
Eddie Jaoude
20 هزار بار بازدید - 4 سال پیش - Keep your forked repo up
Keep your forked repo up to date or if the repo changes location, or you clone the original / parent repo and then you make a fork, it is easy to update your cloned version that is locally to point to another location with 1 or 2 simple git CLI commands.

Example commands
$ git remote -v
$ git remote remove origin
$ git remote add origin [URL]
$ git remote set-url origin [URL]

Shoutout
Thanks Nicholas Carrigan for the alternative suggestion which is even easier. Follow Nicholas on
Twitter Twitter: nhcarrigan
GitHub https://github.com/nhcarrigan

Git remote official docs https://git-scm.com/docs/git-remote

Git remote repository tutorial and with set-url origin upstream example #OpenSource #DevRel

--------------------------------------------------------------------------

A BIG thank you to my GitHub Sponsor:
- Stephen Mount http://github.com/stemount

--------------------------------------------------------------------------

Don’t forget to support my channel by subscribing below, it’s free, and also share with your friends. Subscribe now!!
http://youtube.com/eddiejaoude?sub_co...

Follow on other socials for behind the scenes footage, join discord to continue the conversation...

http://eddiejaoude.co.uk
https://github.com/eddiejaoude
eddiejaoude
Twitter: eddiejaoude
Instagram: eddiejaoude
LinkedIn: eddiejaoude
Discord: discord
4 سال پیش در تاریخ 1399/09/07 منتشر شده است.
20,059 بـار بازدید شده
... بیشتر