{"id":313,"date":"2025-09-05T11:10:25","date_gmt":"2025-09-05T15:10:25","guid":{"rendered":"http:\/\/stephendavies.org\/nlp\/?p=313"},"modified":"2025-09-05T13:35:26","modified_gmt":"2025-09-05T17:35:26","slug":"how-to-clone-a-repo","status":"publish","type":"post","link":"http:\/\/stephendavies.org\/nlp\/index.php\/2025\/09\/05\/how-to-clone-a-repo\/","title":{"rendered":"How to clone a repo"},"content":{"rendered":"<style type=\"text\/css\">\ntt, pre {font-size:small; }\n<\/style>\n<p>For those who haven&#8217;t done this, or who maybe have forgotten, here&#8217;s the &#8220;right&#8221; way to get access to the materials in the class github repository: clone your own copy of it.<\/p>\n<p>On Windows, one way to do this is first to install &#8220;WSL&#8221; (&#8220;Windows Subsystem for Linux&#8221;) before proceeding with the instructions below; this can be accomplished by opening a &#8220;power shell&#8221; and typing &#8220;<tt>wsl --install<\/tt>&#8221; (or &#8220;<tt>wsl --install -d ubuntu<\/tt>&#8221; if that didn&#8217;t work). Then, after restarting your computer, you should be able to type <tt>wsl<\/tt> at the &#8220;Start&#8221; menu to get a Linux-y shell which will accept the commands below.<\/p>\n<p>Okay then, assuming you&#8217;re set up on Mac, Linux, or Windows-with-WSL, type:<\/p>\n<pre>\r\ngit clone git@github.com:divilian\/data470.git\r\n<\/pre>\n<p>or, if you&#8217;ve never <a href=\"https:\/\/ianfinlayson.net\/class\/cpsc225\/notes\/11-git2#making-a-github-user\">set up github SSH keys<\/a> before:<\/p>\n<pre>\r\ngit clone https:\/\/github.com\/divilian\/data470.git\r\n<\/pre>\n<p>If you get a message like &#8220;<tt>git: command not found<\/tt>&#8220;, you&#8217;ll need to install git. On Windows-with-WSL, that should be: &#8220;<tt>sudo apt update<\/tt>&#8221; followed by &#8220;<tt>sudo apt install git -y<\/tt>&#8221;<\/p>\n<p>After successfully doing this, there should be a folder\/directory called &#8220;<tt>data470<\/tt>&#8221; on your computer, in which are all the contents of the class repo, including the stuff I posted yesterday. From that point on, whenever I post something new, you can go into this folder\/directory and type: &#8220;<tt>git pull<\/tt>&#8221; and it will always update your computer with the latest.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For those who haven&#8217;t done this, or who maybe have forgotten, here&#8217;s the &#8220;right&#8221; way to get access to the materials in the class github repository: clone your own copy of it. On Windows, one way to do this is first to install &#8220;WSL&#8221; (&#8220;Windows Subsystem for Linux&#8221;) before proceeding with the instructions below; this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"class_list":["post-313","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/posts\/313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":7,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":323,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/posts\/313\/revisions\/323"}],"wp:attachment":[{"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stephendavies.org\/nlp\/index.php\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}