Differences
This shows you the differences between two versions of the page.
docs:git:multiple_users_with_a_public_repository [2009/10/20 23:25] – created billh | docs:git:multiple_users_with_a_public_repository [2010/03/24 12:33] (current) – billh | ||
---|---|---|---|
Line 7: | Line 7: | ||
git clone --bare / | git clone --bare / | ||
</ | </ | ||
- | * either (1) set the public repo up as a remote in the personal repo, or (2) remove the original project directory, and clone the new bare repository< | + | * either (1) set the public repo up as a remote in the personal repo, or (2) remove the original project directory, and clone the new bare repository |
- | (1) | + | |
+ | **(1)** | ||
+ | < | ||
git remote add origin / | git remote add origin / | ||
+ | </ | ||
+ | |||
+ | You also need to tell git you have a master branch, and where to pull from. Add these to your .gitconfig:< | ||
+ | [branch " | ||
+ | remote = origin | ||
+ | merge = refs/ | ||
+ | </ | ||
- | (2) | + | **(2)** |
+ | < | ||
rm -Rf myproject | rm -Rf myproject | ||
git clone / | git clone / | ||
</ | </ | ||
* now use git fetch, git merge, and/or git pull | * now use git fetch, git merge, and/or git pull |