{"id":1489,"date":"2014-06-04T15:19:08","date_gmt":"2014-06-04T15:19:08","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/?page_id=1489"},"modified":"2016-05-16T12:38:26","modified_gmt":"2016-05-16T12:38:26","slug":"git","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/git\/","title":{"rendered":"GIT"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>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.,<\/p>\n<p>Versions 2.8.2 (via a modulefile) and 1.7.1 (system-wide default) are installed on the CSF.<\/p>\n<p>If you require a different version to the one installed we advise that you install it in your home directory.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>All users of the system can access the software.<\/p>\n<h2>Set up procedure<\/h2>\n<p>We recommend using the newer version via the modulefile rather than the system-wide default. Hence you should load the modulefile:<\/p>\n<pre>\r\nmodule load tools\/gcc\/git\/2.8.2\r\n<\/pre>\n<p>This will automatically load the proxy modulefile to allow access to external websites and repositories.<\/p>\n<p>Note that if you get an error such as:<\/p>\n<pre>\r\nerror: The requested URL returned error: 403 Forbidden while accessing https:\/\/github.com\/...\/refs\r\n<\/pre>\n<p>Then you are using the older system-wide default version and should load the above modulefile instead.<\/p>\n<h2>Running the application<\/h2>\n<p>On the command line type <code>git<\/code>.<\/p>\n<h3>External Access<\/h3>\n<p>The git modulefile for version 2.8.2 and above automatically sets up for use of the proxy for access to external repositories.<\/p>\n<p>If using the default system-wide version of git (1.7.1) and you need to access git<br \/>\nservers\/repositories which are off campus please add the following to your environment:<\/p>\n<pre>\r\nexport HTTP_PROXY=http:\/\/webproxy.its.manchester.ac.uk:3128\r\nexport HTTPS_PROXY=$HTTP_PROXY\r\n<\/pre>\n<p>You should then be able to run git commands such as:<\/p>\n<pre>\r\ngit clone https:\/\/github.com\/myproject.git myproj\r\n<\/pre>\n<p>Please note that git over ssh is not supported on the CSF.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li>On the login node run: <code>git help<\/code><\/li>\n<li><a href=\"http:\/\/git-scm.com\/\">http:\/\/git-scm.com\/<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>16.05.16 &#8211; v2.8.2 installed and modulefile created.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/git\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":31,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1489","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/1489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/comments?post=1489"}],"version-history":[{"count":4,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/1489\/revisions"}],"predecessor-version":[{"id":3017,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/1489\/revisions\/3017"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/31"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/media?parent=1489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}