Using git source control

From CsWiki
Revision as of 23:14, 4 June 2012 by Yuvals12 (Talk | contribs) (added link to revision control)

Jump to: navigation, search

Git source control

Git is a source control system (like SVN, CVS and others) which is both very strong and enables work without connection to a server. You can read about it in Wikipedia.

Using git with ssh

If you set up a git repository on the university servers and want to access it from outside, you should first set up ssh tunneling as described in Scp and Revision control. After that you can clone the repository to you machine (in a new terminal on your local machine, while the ssh terminal stays open):

   git clone ssh://user@localhost:22222/path-to-repo

You will need another OTP for this operation.

After you do it, the remote repository is saved and you don't need this long address again. You can further reduce the need for your CS password when communicating with the repository by setting a ssh key