Skip to content

Instantly share code, notes, and snippets.

@jdvp
Created November 3, 2016 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdvp/8eb7ed2fa4b6fee11c841a3bee9da8a0 to your computer and use it in GitHub Desktop.
Save jdvp/8eb7ed2fa4b6fee11c841a3bee9da8a0 to your computer and use it in GitHub Desktop.
Clone -> Fork
1. Fork the repo that you cloned (on github)
we will refer to the url this is stored at later as {url}
i.e. {url} = https://github.com/{user}/{project}
2. Rename local origin
git remote rename origin upstream
3. Add your fork as the new origin
git remote add origin {url}
4. Fetch and then push
git fetch origin
git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment