Skip to content

Instantly share code, notes, and snippets.

@Saissaken
Created September 30, 2016 18:49
Show Gist options
  • Save Saissaken/99a8a712dc70852cc776fed9724344c6 to your computer and use it in GitHub Desktop.
Save Saissaken/99a8a712dc70852cc776fed9724344c6 to your computer and use it in GitHub Desktop.
# Fork a repo, then create a remote 'upstream' to fetch from the original repo.
git clone https://github.com/userName/Repo New_Repo
cd New_Repo
git remote set-url origin https://github.com/userName/New_Repo
git remote add upstream https://github.com/userName/Repo
git push origin master
git push --all
# optional, remove push url
git config remote.upstream.pushurl "NEVER GONNA GIVE YOU UP"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment