Using git source control

From CsWiki
Revision as of 16:38, 1 June 2011 by Amitb04 (Talk | contribs) (Added new page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 here. 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