Difference between revisions of "Revision control"

From CsWiki
Jump to: navigation, search
m
Line 15: Line 15:
  
 
Then set your git repository to:
 
Then set your git repository to:
   ssh://<login>@localhost:<port><repository>
+
   ssh://<login>@<host>:<port><repository>
 
where  
 
where  
 
* <repository> is the path to your GIT repository (on the CSE file system)
 
* <repository> is the path to your GIT repository (on the CSE file system)

Revision as of 16:44, 13 September 2020

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>@<host>:<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!