Skip to content

Instantly share code, notes, and snippets.

@jamesholcomb
Last active July 8, 2021 19:32
Show Gist options
  • Save jamesholcomb/dee325408d68e22bf3491624887757a8 to your computer and use it in GitHub Desktop.
Save jamesholcomb/dee325408d68e22bf3491624887757a8 to your computer and use it in GitHub Desktop.
How to move to a fork after cloning? Switch the cloned fork to a new remote origin.
git clone https://github.com/otherusername/some-awesome-repo.git
# make changes, commit as needed
git remote set-url origin https://github.com/myusername/myforkedrepo.git
git push
~done~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment