Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== multiple users with a public repository ====== ===== file based repository ===== * start a new project or change to an existing project * initialize a personal git repo * clone this repo to a bare repo, and move it to a public place<code> git clone --bare /path/to/myproject sharedfoldername </code> * 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)** <code> git remote add origin /Volumes/Seagate-1/gitbackup/Autofill/ </code> You also need to tell git you have a master branch, and where to pull from. Add these to your .gitconfig:<code> [branch "master"] remote = origin merge = refs/heads/master </code> **(2)** <code> rm -Rf myproject git clone /path/to/sharedfoldername myproject </code> * now use git fetch, git merge, and/or git pull docs/git/multiple_users_with_a_public_repository.txt Last modified: 2010/03/24 12:33by billh