{"id":890,"date":"2014-03-04T12:37:28","date_gmt":"2014-03-04T19:37:28","guid":{"rendered":"http:\/\/www.cassandraking.net\/wordpressapp\/?p=890"},"modified":"2014-03-04T12:37:28","modified_gmt":"2014-03-04T19:37:28","slug":"basic-gitgithub-concepts-for-newbies-2","status":"publish","type":"post","link":"https:\/\/www.cassandraking.net\/wordpressapp\/basic-gitgithub-concepts-for-newbies-2\/","title":{"rendered":"Basic git\/github Concepts for Newbies"},"content":{"rendered":"<p><strong>Repository\u00c2\u00a0(slang<em>: Repo<\/em>):<\/strong><\/p>\n<p>Location on\u00c2\u00a0<a href=\"http:\/\/github.com\/\">github<\/a>\u00c2\u00a0that stores a snapshot of a project. It includes: snapshots of changes and\u00c2\u00a0<span style=\"color: #ff0000;\"><em>commits<\/em><\/span>\u00c2\u00a0in a history.<\/p>\n<p>Names of Repos:<\/p>\n<ul>\n<li><span style=\"color: #ff0000;\"><em>Upstream<\/em><\/span>\u00c2\u00a0points to the source projects on github.<em><\/em><\/li>\n<li><span style=\"color: #ff0000;\"><em>Origin<\/em><\/span>\u00c2\u00a0 points to \u00c2\u00a0 the\u00c2\u00a0 forked copy in\u00c2\u00a0github of the source.<\/li>\n<li><span style=\"color: #ff0000;\"><em>Master<\/em>\u00c2\u00a0<\/span>is the local copy on your development system. So when you work locally, you can merge<span style=\"color: #ff0000;\">\u00c2\u00a0<em>master<\/em>\u00c2\u00a0<\/span>with\u00c2\u00a0<span style=\"color: #ff0000;\"><em>origin\/master<\/em><\/span><\/li>\n<\/ul>\n<p><strong>Public and Private:<\/strong><\/p>\n<p><span style=\"color: #ff0000;\"><em>Public<\/em>\u00c2\u00a0<\/span>repos are visible to anyone, including users who are not logged in to github.\u00c2\u00a0<em><span style=\"color: #ff0000;\">Private<\/span>\u00c2\u00a0<\/em>repos are only available to members of a working team.<\/p>\n<p><strong>Basic Workflow:<\/strong><\/p>\n<ol>\n<li><span style=\"color: #ff0000;\"><em>Fork<\/em><\/span>\u00c2\u00a0a project on github<a href=\"http:\/\/www.cassandraking.net\/wordpressapp\/wp-content\/uploads\/2014\/03\/Screen-Shot-2014-03-04-at-2.30.14-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-891 alignright\" alt=\"Screen Shot 2014-03-04 at 2.30.14 PM\" src=\"http:\/\/www.cassandraking.net\/wordpressapp\/wp-content\/uploads\/2014\/03\/Screen-Shot-2014-03-04-at-2.30.14-PM.png\" width=\"258\" height=\"294\" \/><\/a><\/li>\n<li><span style=\"color: #ff0000;\"><em>Clone<\/em>\u00c2\u00a0<\/span>your github fork to your computer\/local development area (this means you now own two repos: one on github, one on your computer.<\/li>\n<li>Create a topic\u00c2\u00a0<span style=\"color: #ff0000;\"><em>branch<\/em>\u00c2\u00a0<\/span>for your own work in your local clone<\/li>\n<li><span style=\"color: #ff0000;\"><em>Commit<\/em>\u00c2\u00a0<\/span>changes to your github fork<\/li>\n<li>send a<span style=\"color: #ff0000;\">\u00c2\u00a0<em>pull request<\/em>\u00c2\u00a0<\/span>back to the original project<\/li>\n<\/ol>\n<p><strong>About Remotes<\/strong><\/p>\n<p>In git, other repos that it knows about are called\u00c2\u00a0<span style=\"color: #ff0000;\"><em>remotes<\/em>.<\/span> When you clone a repo, git saves the parent repo under the name<em>\u00c2\u00a0<span style=\"color: #ff0000;\">origin<\/span><\/em><span style=\"color: #ff0000;\">,<\/span> so origin on your computer repo will point to your personal fork on github<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Great Git Learning resources:<\/strong><\/p>\n<ul>\n<li>My favorite by far! Dont let the name scare you, it is excellent and easy to understand : Pro Git by Chacon\u00c2\u00a0<a href=\"http:\/\/git-scm.com\/book\">http:\/\/git-scm.com\/book<\/a><\/li>\n<li><strong>Atlassian Tutorial<\/strong>\u00c2\u00a0<a href=\"https:\/\/www.atlassian.com\/git\/tutorial\/git-basics\">https:\/\/www.atlassian.com\/git\/tutorial\/git-basics<\/a><\/li>\n<li><strong>Git the Simple Guide<\/strong>\u00c2\u00a0<a href=\"http:\/\/rogerdudler.github.io\/git-guide\/\">http:\/\/rogerdudler.github.io\/git-guide\/<\/a><\/li>\n<li>git and github video tutorials\u00c2\u00a0<a href=\"https:\/\/www.youtube.com\/playlist?list=PLEACDDE80A79CE8E7\">https:\/\/www.youtube.com\/playlist?list=PLEACDDE80A79CE8E7<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Repository\u00c2\u00a0(slang: Repo): Location on\u00c2\u00a0github\u00c2\u00a0that stores a snapshot of a project. It includes: snapshots of changes and\u00c2\u00a0commits\u00c2\u00a0in a history. Names of Repos: Upstream\u00c2\u00a0points to the source projects on github. Origin\u00c2\u00a0 points to \u00c2\u00a0 the\u00c2\u00a0 forked copy in\u00c2\u00a0github of the source. Master\u00c2\u00a0is the local copy on your development system. So when you work locally, you can merge\u00c2\u00a0master\u00c2\u00a0with\u00c2\u00a0origin\/master [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[134,126,207],"tags":[209,124,277,208],"_links":{"self":[{"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/posts\/890"}],"collection":[{"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/comments?post=890"}],"version-history":[{"count":1,"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/posts\/890\/revisions"}],"predecessor-version":[{"id":892,"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/posts\/890\/revisions\/892"}],"wp:attachment":[{"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/media?parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/categories?post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cassandraking.net\/wordpressapp\/wp-json\/wp\/v2\/tags?post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}