{"id":481,"date":"2020-10-30T16:08:25","date_gmt":"2020-10-30T16:08:25","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf4\/?page_id=481"},"modified":"2020-10-30T16:08:35","modified_gmt":"2020-10-30T16:08:35","slug":"git","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/git\/","title":{"rendered":"git &#038; git-lfs"},"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.23.0 (via a modulefile) and 1.8.3.1 (system-wide default) are installed on the CSF. We recommend using the newer version via the modulefile.<\/p>\n<p><a href=\"https:\/\/git-lfs.github.com\">git-lfs<\/a> Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise. <\/p>\n<p>Version 2.11.0 (via a modulefile) is available 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 proxy\r\nmodule load git            # Can also give the version explicitly: git\/2.23.0-gcccore-8.3.0\r\n<\/pre>\n<p>To use git-lfs use:<\/p>\n<pre>\r\nmodule load git-lfs\r\n<\/pre>\n<p>The proxy modulefile allows 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<p>If you wish to prepare a repository for use with git-lfs run the following inside each repository:<\/p>\n<pre>\r\ngit lfs install\r\n<\/pre>\n<h3>External Access<\/h3>\n<p>If using the default system-wide version of git (1.8.3.1) and you need to access git servers\/repositories which are off campus please add the following to your environment:<\/p>\n<pre>\r\nmodule load proxy\r\n<\/pre>\n<p>You should then be able to run git commands such as:<\/p>\n<pre>\r\ngit clone <strong>https<\/strong>:\/\/github.com\/myproject.git myproj\r\n<\/pre>\n<p>Please note that git over <code>ssh:\/\/<\/code> or <code>git:\/\/<\/code> protocols is <strong>not<\/strong> supported on the CSF.<\/p>\n<h3>Don&#8217;t clone in to scratch<\/h3>\n<p>We strongly recommend that you clone repositories in to you <em>home area<\/em>, or other research data storage, instead of your scratch area. This is because the scratch clean-up policy can automatically delete files older than 3 months. A cloned repository often contains many very old files.<\/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>None<\/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.23.0 (via a modulefile) and 1.8.3.1 (system-wide default) are installed on the CSF. We recommend using the newer version via the modulefile. git-lfs Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/software\/applications\/git\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":49,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-481","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/comments?post=481"}],"version-history":[{"count":2,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/481\/revisions"}],"predecessor-version":[{"id":483,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/481\/revisions\/483"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/pages\/49"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf4\/wp-json\/wp\/v2\/media?parent=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}