The CSF2 has been replaced by the CSF3 - please use that system! This documentation may be out of date. Please read the CSF3 documentation instead. To display this old CSF2 page click here. |
GIT
Overview
Git is a version control system, which allows you to keep old versions of files and directories (usually source code), keep a log of who, when, and why changes occurred, etc.,
Versions 2.8.2 (via a modulefile) and 1.7.1 (system-wide default) are installed on the CSF.
If you require a different version to the one installed we advise that you install it in your home directory.
Restrictions on use
All users of the system can access the software.
Set up procedure
We recommend using the newer version via the modulefile rather than the system-wide default. Hence you should load the modulefile:
module load tools/gcc/git/2.8.2
This will automatically load the proxy modulefile to allow access to external websites and repositories.
Note that if you get an error such as:
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/.../refs
Then you are using the older system-wide default version and should load the above modulefile instead.
Running the application
On the command line type git
.
External Access
The git modulefile for version 2.8.2 and above automatically sets up for use of the proxy for access to external repositories.
If using the default system-wide version of git (1.7.1) and you need to access git
servers/repositories which are off campus please add the following to your environment:
export HTTP_PROXY=http://webproxy.its.manchester.ac.uk:3128 export HTTPS_PROXY=$HTTP_PROXY
You should then be able to run git commands such as:
git clone https://github.com/myproject.git myproj
Please note that git over ssh is not supported on the CSF.
Further info
- On the login node run:
git help
- http://git-scm.com/
Updates
16.05.16 – v2.8.2 installed and modulefile created.