Difference between revisions of "Revision control"

From CsWiki
Jump to: navigation, search
(added link to scp)
(added link to Using git source control)
Line 1: Line 1:
''This process is also listed under [[Scp]]''
+
''This process is also listed under [[Scp]] and [[Using git source control]]''
  
 
Users can request an SVN or CVS repository that is accessible from outside the CSE network.
 
Users can request an SVN or CVS repository that is accessible from outside the CSE network.

Revision as of 00:14, 5 June 2012

This process is also listed under Scp and Using git source control

Users can request an SVN or CVS repository that is accessible from outside the CSE network.

However one can easily create one's own GIT repository and access it by SSH tunneling though the gateway:

First dig a tunnel:

 ssh -L <port>:<host>:22 -fN <login>%<host>@gw.cs.huji.ac.il

where

  • <port> is an unprivileged port number (on your local machine) e.g. 9999
  • <host> is a CSE server e.g. river, inferno
  • <login> is your CSE username

For example:

 ssh -L 9999:river:22 -fN chana%river@gw.cs.huji.ac.il

Then set your git repository to:

 ssh://<login>@localhost:<port><repository>

where

  • <repository> is the path to your GIT repository (on the CSE file system)

For example:

 ssh://chana@river:9999/cs/system/chana/moodle

Thanks to Yuval Sedan for providing the commands.

Suggestions for variations and/or abbreviations are welcome!