- SSH into crayfish:
ssh user@crayfish.coral.cs.cmu.edu
- Create a directory to store your repository:
mkdir myrepo
(replace myrepo with your desired name in these instructions)
- Initialize repositiory:
cd myrepo git init --bare
- To allow others to access your repository:
chmod -R a+w .
On your computer
cd $CMURFS_DIR git remote add myrepo ssh://user@crayfish.coral.cs.cmu.edu/home/user/myrepo git push myrepo master
The last line "push"es the content of your local repository to the one on the server. Other members of your group can use the repository by:
cd $CMURFS_DIR git remote add myrepo ssh://otheruser@crayfish.coral.cs.cmu.edu/home/youruser/myrepo git pull myrepo master
Group members can then commit changes to the repository by:
git add <filename> git commit -m "Insert a witty message explaining your changes here" git push myrepo master
and other members can retrieve the changes by
git pull myrepo master