gist: 20686 Download_button fork
public
Public Clone URL: git://gist.github.com/20686.git
Bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Say we're both working on the same project, and I've just created
# a new branch for my cool new feature and pushed it up to my
# github-hosted repo on a branch called "feature".
 
# Inside your local copy of the repo:
 
# create a new remote called "johnreilly" for the repo located at github
git remote add johnreilly git://github.com/johnreilly/project.git
 
# do a fetch of the remote repository
git fetch johnreilly
 
# create and checkout a new tracking branch based on mine
git checkout --track -b johns_feature johnreilly/feature
 
# you should now have a local branch called "johns_feature" that tracks
# my feature branch. Doing a "git pull" will pull in any of my changes.
# You can merge that branch into any of your other local branches.
 

Fork Of

Revisions