wiki:GitoliteProcess

Version 2 (modified by Erica Kaminski, 11 years ago) ( diff )

Accessing existing repositories

  • Access to repositories is done using Gitolite. Gitolite uses ssh for authentication - and then its own internal permission system for authorization. To authenticate to the gitolite server, you will need to upload a public ssh key generated on each machine you plan on using to download the repository. If you don't already have a public/private key pair (ie)
     ~/.ssh/id_dsa.pub
     ~/.ssh/id_dsa
    
    you can generate them using
      ssh-keygen -t dsa 
    
    You will be prompted for the place to save the key. Hit enter to just save to the default location, and hit enter again for the passphrase nickname to leave it blank. Upload the id_dsa.pub to to the wiki here. Please note that while you will authenticate using your public key, you still connect to the server as the gitolite user "orda". After you upload your public key you should be able to clone repositories (ie astrobear) using
      git clone ssh://orda@astrobear.pas.rochester.edu/astrobear
    

Note: if you are having problem making the key, try ssh'ing into your current machine and try again (even if you are already logged into your current machine from your terminal).

Hosting your own repositories (for Papers, code projects, etc…)

  • If you would like to host your own git repository, you can create one using AdminGitolite Repositories
  • To grant permissions to the new repository select AdminGitolite Permissions
  • And to add users to gitolite groups select AdminGitolite Users/Groups

You will then be able to clone the repo as before

  git clone ssh://orda@astrobear.pas.rochester.edu/my_repo

If the repo has just been created - it will be empty. To add files you can use

 git add <file1> <file2>

and then commit with

 git commit -m '<commit message>'

and then push to the server using

 git push origin master

Subsequent pulls or pushes can be accomplished by

  git pull

and

  git push
Note: See TracWiki for help on using the wiki.