Fandom

CMRoboBits Wiki

Create your own repository

11pages on
this wiki
Add New Page
Comments0 Share
  • 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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.