{"id":1147,"date":"2014-12-07T17:07:19","date_gmt":"2014-12-07T17:07:19","guid":{"rendered":"http:\/\/virtualactivism.org\/education\/?p=1147"},"modified":"2015-04-19T14:51:04","modified_gmt":"2015-04-19T14:51:04","slug":"how-to-get-started-with-git","status":"publish","type":"post","link":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/","title":{"rendered":"how to get started with Git"},"content":{"rendered":"<p><a href=\"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg\" alt=\"git-logo\" width=\"150\" height=\"150\" align=\"right\" \/><\/a>Git &#8211; if you still don&#8217;t know what it is &#8211; is a &#8220;collaboration, code review, and code management for open source and private projects&#8221;. It is being used increasingly in project management and team work in development. Of course there is much more to Git than what I wrote here &#8211; but this is only to get you started.<\/p>\n<p><strong>Git to get you started:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Install Git and use all default configurations. To get a good install go to <a href=\"http:\/\/git-scm.com\/downloads\">http:\/\/git-scm.com\/downloads<\/a><\/li>\n<li>Go to the folder you have created on your desktop for your project by typing <strong>$ cd desktop<\/strong> [or whatever the path to your folder is]<\/li>\n<li>Write <strong>$ git init<\/strong> to initiate that folder<\/li>\n<li>set your user name and e-mail address. This is important because every Git commit uses this information, and it\u2019s immutably baked into the commits you start creating:<\/li>\n<li><strong>$ git config &#8211;global user.name&#8221;John Doe&#8221;$ git config &#8211;global user.email johndoe@example.com<\/strong><\/li>\n<li>Git comes with a terminal and a GUI. When in doubt, use the GUI [though I don&#8217;t recommend it].<\/li>\n<li>In windows, you may right click on the desktop and the Git menu will show up.<\/li>\n<li>In Macs just go to utilities and find the Terminal.<\/li>\n<li>Configure your default text editor eg<br \/>\n<strong>$ git config &#8211;global core.editor emacs<\/strong><\/li>\n<li>You may head over to documentation <a href=\"http:\/\/git-scm.com\/book\/en\/v2\/Getting-Started-First-Time-Git-Setup\">http:\/\/git-scm.com\/book\/en\/v2\/Getting-Started-First-Time-Git-Setup<\/a> and\/or you may also try codeschool\u2019s Git <a href=\"https:\/\/try.github.io\/levels\/1\/challenges\/\">https:\/\/try.github.io\/levels\/1\/challenges\/<\/a><\/li>\n<li>To check what\u2019s happening on git all the time, type<br \/>\n<strong>$ git status<\/strong><\/li>\n<li>To make a new directory that is a Git repository specify the directory:<br \/>\n<strong>$ git init \u201cdirectoryname\u201d<\/strong><\/li>\n<li>Now you can start adding files to Git<br \/>\n<strong>$ git add \u201cfilename\u201d<\/strong> or to add entire directory <strong>$ git add . <\/strong>[note the period at the end which means add all]<strong><br \/>\n<\/strong><\/li>\n<li>To add a directory that is in some folder on your desktop just type<br \/>\n<strong>$ git add pathtodirectory<\/strong><br \/>\n<strong>$ git add desktop\/webs\/somefolder\/yourfolder\/<\/strong><\/li>\n<li>Now we want to commit adding them to our repository:<br \/>\n<strong>$ git commit \u2013m \u201cadding files\u201d<\/strong> [if you don\u2019t write the \u2013m it will ask you for an your text editor\u2019s name and if it doesn\u2019t find one it will not commit].<\/li>\n<li>To put files to the server \u2013 create an account on github.com<\/li>\n<li>You may create a new repository on it or you may just leave it empty.<\/li>\n<li>Push your files to github by writing:<\/li>\n<\/ul>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 git remote add origin https:\/\/github.com\/yourlogin\/nameofrepo.git<br \/>\n<\/strong><strong>git push -u origin master<\/strong><\/p>\n<ul>\n<li>It will ask you for the login and password for your github. Write them down. If you don&#8217;t see the password being written, that&#8217;s because it is a hidden password [duh!]<\/li>\n<li>Now you\u2019re done!<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git &#8211; if you still don&#8217;t know what it is &#8211; is a &#8220;collaboration, code review, and code management for open source and private projects&#8221;. It is being used increasingly in project management and team work in development. Of course <a href=\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,19,22],"tags":[],"class_list":["post-1147","post","type-post","status-publish","format-standard","hentry","category-free-software","category-geeky","category-how-to"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>how to get started with Git - Education and Technology Hub<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"how to get started with Git - Education and Technology Hub\" \/>\n<meta property=\"og:description\" content=\"Git &#8211; if you still don&#8217;t know what it is &#8211; is a &#8220;collaboration, code review, and code management for open source and private projects&#8221;. It is being used increasingly in project management and team work in development. Of course Read More ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/\" \/>\n<meta property=\"og:site_name\" content=\"Education and Technology Hub\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-07T17:07:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-04-19T14:51:04+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg\" \/>\n<meta name=\"author\" content=\"mtadros\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mtadros\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/\",\"url\":\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/\",\"name\":\"how to get started with Git - Education and Technology Hub\",\"isPartOf\":{\"@id\":\"https:\/\/virtualactivism.org\/education\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg\",\"datePublished\":\"2014-12-07T17:07:19+00:00\",\"dateModified\":\"2015-04-19T14:51:04+00:00\",\"author\":{\"@id\":\"https:\/\/virtualactivism.org\/education\/#\/schema\/person\/a58d2f8787e73e2be26217913d0bd72b\"},\"breadcrumb\":{\"@id\":\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#primaryimage\",\"url\":\"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg\",\"contentUrl\":\"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/virtualactivism.org\/education\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"how to get started with Git\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/virtualactivism.org\/education\/#website\",\"url\":\"https:\/\/virtualactivism.org\/education\/\",\"name\":\"Education and Technology Hub\",\"description\":\"Technology and Education Resources\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/virtualactivism.org\/education\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/virtualactivism.org\/education\/#\/schema\/person\/a58d2f8787e73e2be26217913d0bd72b\",\"name\":\"mtadros\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/virtualactivism.org\/education\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a259b1d62c18a7fccf8e70573e8c7aeb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a259b1d62c18a7fccf8e70573e8c7aeb?s=96&d=mm&r=g\",\"caption\":\"mtadros\"},\"url\":\"https:\/\/virtualactivism.org\/education\/author\/mtadros\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"how to get started with Git - Education and Technology Hub","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/","og_locale":"en_US","og_type":"article","og_title":"how to get started with Git - Education and Technology Hub","og_description":"Git &#8211; if you still don&#8217;t know what it is &#8211; is a &#8220;collaboration, code review, and code management for open source and private projects&#8221;. It is being used increasingly in project management and team work in development. Of course Read More ...","og_url":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/","og_site_name":"Education and Technology Hub","article_published_time":"2014-12-07T17:07:19+00:00","article_modified_time":"2015-04-19T14:51:04+00:00","og_image":[{"url":"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg","type":"","width":"","height":""}],"author":"mtadros","twitter_card":"summary_large_image","twitter_misc":{"Written by":"mtadros","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/","url":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/","name":"how to get started with Git - Education and Technology Hub","isPartOf":{"@id":"https:\/\/virtualactivism.org\/education\/#website"},"primaryImageOfPage":{"@id":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#primaryimage"},"image":{"@id":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#primaryimage"},"thumbnailUrl":"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg","datePublished":"2014-12-07T17:07:19+00:00","dateModified":"2015-04-19T14:51:04+00:00","author":{"@id":"https:\/\/virtualactivism.org\/education\/#\/schema\/person\/a58d2f8787e73e2be26217913d0bd72b"},"breadcrumb":{"@id":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#primaryimage","url":"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg","contentUrl":"http:\/\/virtualactivism.org\/education\/wp-content\/uploads\/2014\/12\/git-logo-150x150.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/virtualactivism.org\/education\/how-to-get-started-with-git\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/virtualactivism.org\/education\/"},{"@type":"ListItem","position":2,"name":"how to get started with Git"}]},{"@type":"WebSite","@id":"https:\/\/virtualactivism.org\/education\/#website","url":"https:\/\/virtualactivism.org\/education\/","name":"Education and Technology Hub","description":"Technology and Education Resources","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/virtualactivism.org\/education\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/virtualactivism.org\/education\/#\/schema\/person\/a58d2f8787e73e2be26217913d0bd72b","name":"mtadros","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/virtualactivism.org\/education\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a259b1d62c18a7fccf8e70573e8c7aeb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a259b1d62c18a7fccf8e70573e8c7aeb?s=96&d=mm&r=g","caption":"mtadros"},"url":"https:\/\/virtualactivism.org\/education\/author\/mtadros\/"}]}},"_links":{"self":[{"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/posts\/1147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/comments?post=1147"}],"version-history":[{"count":6,"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/posts\/1147\/revisions"}],"predecessor-version":[{"id":1173,"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/posts\/1147\/revisions\/1173"}],"wp:attachment":[{"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/media?parent=1147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/categories?post=1147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtualactivism.org\/education\/wp-json\/wp\/v2\/tags?post=1147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}