Skip to content

Instantly share code, notes, and snippets.

@Hotell
Last active April 1, 2017 20:36
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 Hotell/f4507e45ff0df7e4e12c3ffd671ea9ac to your computer and use it in GitHub Desktop.
Save Hotell/f4507e45ff0df7e4e12c3ffd671ea9ac to your computer and use it in GitHub Desktop.
Forking repo steps
#!/bin/bash
git clone <git.your-forks-url> && cd $_
# add remote to original project
git remote add upstream <git.forked-project-origin-url>
# fetch headers
git fetch upstream
# point master branch to original master so we can pull from original project and update our fork
git branch --set-upstream-to=upstream/master master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment