Skip to content

Instantly share code, notes, and snippets.

@gerjantd
Created April 21, 2012 11:24
Show Gist options
  • Save gerjantd/2436686 to your computer and use it in GitHub Desktop.
Save gerjantd/2436686 to your computer and use it in GitHub Desktop.
Github: fork your own repo
http://bitdrift.com/post/4534738938/fork-your-own-project-on-github
1. Create a new repo named bar at github.com
2. git clone https://gerjantd@github.com/gerjantd/foo.git bar
3. cd bar
4. vi .git/config
replace foo with bar
url = https://gerjantd@github.com:gerjantd/foo.git -> url = https://gerjantd@github.com:gerjantd/bar.git
5. git push -u origin master
6. (Optional) git remote add upstream https://gerjantd@github.com/gerjantd/foo.git
7. (Optional) git fetch upstream
8. (Optional) git merge upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment