{"id":965,"date":"2026-03-24T10:25:57","date_gmt":"2026-03-24T14:25:57","guid":{"rendered":"http:\/\/stephendavies.org\/cpsc350\/?p=965"},"modified":"2026-03-24T10:25:57","modified_gmt":"2026-03-24T14:25:57","slug":"important-git-version-on-cpsc","status":"publish","type":"post","link":"http:\/\/stephendavies.org\/cpsc350\/?p=965","title":{"rendered":"Important: git version on cpsc"},"content":{"rendered":"<p>So, it appears that the version of <tt>git<\/tt> on the cpsc server is super old, and still defaults to looking for a branch named &#8220;<tt>master<\/tt>&#8221; instead of &#8220;<tt>main<\/tt>&#8220;. Ian told me he&#8217;s going to update the OS on cpsc this summer, but it&#8217;s too intrusive a change to do mid-semester.<\/p>\n<p>What this means for you is: if you download one of the git bundles I&#8217;ve posted (like, in <a href=\"http:\/\/stephendavies.org\/cpsc350\/?p=963\">this post<\/a>), then after doing:<\/p>\n<pre>\r\n$ git clone nameOfBundle.git nameOfDirectoryToUnpackIn\r\n<\/pre>\n<p>you&#8217;ll need to then do:<\/p>\n<pre>\r\n$ cd nameOfDirectoryToUnpackIn\r\n$ git checkout main\r\n<\/pre>\n<p>That &#8220;<tt>git checkout main<\/tt>&#8221; is the key. <b>Without doing that, the bundle you downloaded is going to seem empty: you won&#8217;t see any code in it at all.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, it appears that the version of git on the cpsc server is super old, and still defaults to looking for a branch named &#8220;master&#8221; instead of &#8220;main&#8220;. Ian told me he&#8217;s going to update the OS on cpsc this summer, but it&#8217;s too intrusive a change to do mid-semester. What this means for you [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"class_list":["post-965","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/posts\/965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=965"}],"version-history":[{"count":1,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/posts\/965\/revisions"}],"predecessor-version":[{"id":966,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/posts\/965\/revisions\/966"}],"wp:attachment":[{"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=965"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}