Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:git:working_copies_of_multiple_branches [2009/11/08 00:55] – billh | docs:git:working_copies_of_multiple_branches [2009/11/08 01:07] (current) – billh | ||
---|---|---|---|
Line 9: | Line 9: | ||
cd /foo/base | cd /foo/base | ||
git branch alt | git branch alt | ||
+ | (make sure you have a branch called ' | ||
cd .. | cd .. | ||
git clone /foo/base /foo/alt | git clone /foo/base /foo/alt | ||
Line 19: | Line 20: | ||
git pull | git pull | ||
git push origin alt | git push origin alt | ||
- | (you can also just run 'git push') | + | (you can also just run 'git push' |
+ | </ | ||
+ | |||
+ | Your .git/config file will show the alt branch configured like this:< | ||
+ | [branch " | ||
+ | remote = origin | ||
+ | merge = refs/ | ||
</ | </ | ||
Line 82: | Line 89: | ||
You should now be able to 'git pull' and merge any changes from the main repo. | You should now be able to 'git pull' and merge any changes from the main repo. | ||
+ | |||
+ | ===== External Links ===== | ||
+ | * [[http:// | ||
+ |