Skip to content

Instantly share code, notes, and snippets.

@francoisgeorgy
Created November 22, 2020 08:13
Show Gist options
  • Select an option

  • Save francoisgeorgy/9a898f1a376f73327c1998bf07c3c4a6 to your computer and use it in GitHub Desktop.

Select an option

Save francoisgeorgy/9a898f1a376f73327c1998bf07c3c4a6 to your computer and use it in GitHub Desktop.
#git move back forked repo
# https://stackoverflow.com/questions/43686302/how-to-move-forked-repo-back-to-the-main-repo
$ git remote add forked <forked-repo-url>
$ git checkout master
$ git pull forked master # now your repo's master = forked repo's master
$ git push origin master # push/update remote master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment