Revision control
From CsWiki
Revision as of 08:35, 22 May 2013 by Elylevy (Talk | contribs) (Reverted edits by 118.96.89.45 (Talk) to last revision by Yuvals12)
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!