{"id":157,"date":"2010-04-04T16:43:20","date_gmt":"2010-04-04T16:43:20","guid":{"rendered":"http:\/\/math.columbia.edu\/~dejong\/wordpress\/?p=157"},"modified":"2010-04-04T22:56:09","modified_gmt":"2010-04-04T22:56:09","slug":"git-clone","status":"publish","type":"post","link":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/?p=157","title":{"rendered":"Cloning the stacks project"},"content":{"rendered":"<p>To clone the stacks project onto your local linux machine just type<\/p>\n<p><code>$ git clone git:\/\/paard.math.columbia.edu\/var\/git\/stacks<\/code><\/p>\n<p>on your command line. This assumes you have the linux tool git installed. It will create a directory called &#8220;stacks&#8221; which has all the tex files in the project (and the complete history of the project). To latex all tex files and obtain dvi files on you system type<\/p>\n<p><code>$ cd stacks<br \/>\n$ make dvis<\/code><\/p>\n<p>You can get all the pdfs by typing<code> make pdfs <\/code>instead. Play around with it!<\/p>\n<p>If you do not have git installed, then you will usually be able to install it using your distributions package manager (or you may have to ask your administrator to do this). For example on Debian you would use<\/p>\n<p><code>$ apt-get install git-core<\/code><\/p>\n<p><code> <\/code>and on Ubuntu you may have to preface that with<code> sudo<\/code>.<\/p>\n<p>If you still use the windows operating system, then you can install <a href=\"http:\/\/code.google.com\/p\/msysgit\/\">msysgit<\/a>. This will allow you to clone the <a href=\"git:\/\/paard.math.columbia.edu\/var\/git\/stacks\">stacks git repository<\/a> by the age old point and click method. But I&#8217;m not sure this is too useful, since you still need some kind of make clone to be able to convert the tex files into dvis or pdfs. In that regard it may be better (if you haven&#8217;t already) to install <a href=\"http:\/\/www.cygwin.com\/\">Cygwin<\/a> which gives you access to unix tools on windows (including git).<\/p>\n<p>Zachary Maddock has reported success installing git on OS X (presumably using <a href=\"http:\/\/code.google.com\/p\/git-osx-installer\/\">git-osx-installer<\/a>) and using it to download the stacks project onto his Apple.<\/p>\n<p>Of course a less nerdy and perhaps more efficient way to get the complete project (source files only) is to download <a href=\"http:\/\/math.columbia.edu\/algebraic_geometry\/stacks-git\/stacks-git.tar.bz2\">stacks-git.tar.bz2<\/a>. The advantage of having the git tool is that when you type<\/p>\n<p><code>$ git pull<\/code><\/p>\n<p>on the command line (inside the project directory) it will automatically look for updates and pull them in if there are any. In the file <a href=\"http:\/\/math.columbia.edu\/algebraic_geometry\/stacks-git\/documentation\/git-howto\">git-howto<\/a> there are some hints as how to use the git tool and contribute to the stacks project. Much more information on using git can be found on its <a href=\"http:\/\/git-scm.com\/\">website<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To clone the stacks project onto your local linux machine just type $ git clone git:\/\/paard.math.columbia.edu\/var\/git\/stacks on your command line. This assumes you have the linux tool git installed. It will create a directory called &#8220;stacks&#8221; which has all the &hellip; <a href=\"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/?p=157\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-157","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=157"}],"version-history":[{"count":16,"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/157\/revisions"}],"predecessor-version":[{"id":259,"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/157\/revisions\/259"}],"wp:attachment":[{"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.math.columbia.edu\/~dejong\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}