Last active
April 1, 2017 20:36
-
-
Save Hotell/f4507e45ff0df7e4e12c3ffd671ea9ac to your computer and use it in GitHub Desktop.
Forking repo steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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