Difference between revisions of "Revision control"
From CsWiki
m (Reverted edits by 118.96.89.45 (Talk) to last revision by Yuvals12) |
m |
||
Line 24: | Line 24: | ||
Suggestions for variations and/or abbreviations are welcome! | Suggestions for variations and/or abbreviations are welcome! | ||
+ | [[category:Connecting to the CS network]][[category:Source Control]] |
Revision as of 22:36, 22 March 2017
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!