{"id":604,"date":"2014-10-24T17:00:56","date_gmt":"2014-10-24T17:00:56","guid":{"rendered":"http:\/\/vickistan.com\/?p=604"},"modified":"2014-11-13T17:14:41","modified_gmt":"2014-11-13T17:14:41","slug":"basic-git-stuff","status":"publish","type":"post","link":"https:\/\/vickistan.com\/?p=604","title":{"rendered":"Basic GIT stuff"},"content":{"rendered":"<p>Git stuff<\/p>\n<p>Conceptual description: http:\/\/www.sbf5.com\/~cduan\/technical\/git\/git-1.shtml<\/p>\n<p>**HEAD is the name given to the commit from which the working tree\u2019s current state was initialized.<br \/>\ngit rebase allows you to pull changes from master into your development branch, but leave all of your development work \u201con top of\u201d (later in the commit log) the stuff from master. When your new work is complete, the merge back to master is then very straightforward.<\/p>\n<p>#Make a local copy of the git repo that you want to work on<br \/>\ngit clone URL<\/p>\n<p>make changes in local repository<\/p>\n<p>git add changed.file<\/p>\n<p>git commit -m \u201cnew changes\u201d<\/p>\n<p>git status<\/p>\n<p>git push origin master<\/p>\n<p>When you want to update your local copy with a special branch, do the following:<\/p>\n<p>#Pull a fresh copy of develop<br \/>\ngit checkout develop<\/p>\n<p>#Look for last minute changes<br \/>\ngit pull<\/p>\n<p>#Check out the feature branch<br \/>\ngit checkout feature\/my_special_branch<\/p>\n<p>#Merge with develop branch you just updated<br \/>\ngit merge develop<\/p>\n<p>**Switching to develop and doing a pull will ensure your local copy is up to date with the most recent develop branch. Then you add in the new feature branch by pulling it and then merging with develop.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git stuff Conceptual description: http:\/\/www.sbf5.com\/~cduan\/technical\/git\/git-1.shtml **HEAD is the name given to the commit from which the working tree\u2019s current state was initialized. git rebase allows you to pull changes from master into your development branch, but leave all of your &hellip; <a href=\"https:\/\/vickistan.com\/?p=604\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-604","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=604"}],"version-history":[{"count":2,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":609,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions\/609"}],"wp:attachment":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}