{"id":29014,"date":"2018-11-24T00:56:02","date_gmt":"2018-11-23T22:56:02","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=29014"},"modified":"2018-11-24T00:56:02","modified_gmt":"2018-11-23T22:56:02","slug":"learn-git-branching","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2018\/11\/24\/learn-git-branching\/","title":{"rendered":"Learn Git Branching"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"29015\" data-permalink=\"https:\/\/mamchenkov.net\/wordpress\/2018\/11\/24\/learn-git-branching\/git-branch\/\" data-orig-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch.png?fit=1905%2C936&amp;ssl=1\" data-orig-size=\"1905,936\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"git branch\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch.png?fit=660%2C324&amp;ssl=1\" class=\"aligncenter size-medium wp-image-29015\" src=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch-500x246.png?resize=500%2C246&#038;ssl=1\" alt=\"\" width=\"500\" height=\"246\" srcset=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch.png?resize=500%2C246&amp;ssl=1 500w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch.png?resize=768%2C377&amp;ssl=1 768w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch.png?resize=1024%2C503&amp;ssl=1 1024w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch.png?w=1905&amp;ssl=1 1905w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/11\/git-branch.png?w=1320 1320w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a>&#8220;<a href=\"https:\/\/learngitbranching.js.org\/\">Learn Git Branching<\/a>&#8221; is a very cool, interactive tutorial for branching in git version control.\u00a0 It starts off with the very basic concepts, even covering simple commits, and continues step-by-step all the way to merging, cherry-picking, rebasing, and working with remotes.<\/p>\n<p>Super cool!<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>&#8220;Learn Git Branching&#8221; is a very cool, interactive tutorial for branching in git version control.\u00a0 It starts off with the very basic concepts, even covering simple commits, and continues step-by-step all the way to merging, cherry-picking, rebasing, and working with remotes. Super cool!<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Learn Git Branching #WebDev #VersionControl #git #tutorials","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,62,1334],"tags":[2265,80,1588,1330],"keyring_services":[],"class_list":["post-29014","post","type-post","status-publish","format-standard","hentry","category-general","category-programming","category-technology","category-web-work","tag-git","tag-tutorials","tag-version-control","tag-web-development"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":28208,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/11\/13\/git-magic\/","url_meta":{"origin":29014,"position":0},"title":"Git Magic","author":"Leonid Mamchenkov","date":"November 13, 2017","format":false,"excerpt":"If you are trying to learn Git, but the Git Book looks large and intimidating to you (which it isn't), have a look at Git Magic.\u00a0 It's smaller and simpler, and seems like a good start for those of you just getting your feet wet in the git world.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26685,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/09\/12\/git-history-of-a-source-code-line\/","url_meta":{"origin":29014,"position":1},"title":"git: history of a source code line","author":"Leonid Mamchenkov","date":"September 12, 2016","format":false,"excerpt":"git is one of those tools that no matter how much you know about it, there is an infinite supply of new things to learn. \u00a0Here's a handy bit I've discovered recently, thanks to this StackOverflow comment: Since Git 1.8.4, git log has -L to view the evolution of a\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25046,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/12\/12\/fixing-mistakes-in-git\/","url_meta":{"origin":29014,"position":2},"title":"Fixing mistakes in Git","author":"Leonid Mamchenkov","date":"December 12, 2015","format":false,"excerpt":"Linux.com reiterates over the ways to fix and undo mistakes using Git version control software. \u00a0Seasoned git users will probably know all of these already, but since I have to explain these things to git newcomers, I thought I'd have it handy somewhere here.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"git","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2015\/12\/git.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":28529,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/04\/27\/git-clean-a-nice-addition-to-git-reset\/","url_meta":{"origin":29014,"position":3},"title":"git clean &#8211; a nice addition to git reset","author":"Leonid Mamchenkov","date":"April 27, 2018","format":false,"excerpt":"Anybody working with git is probably well familiar with the way to undo the non-committed changes: As useful as the above command is, it still leaves some room for improvement. The above command will only undo non-committed changes on the files that git is tracking. Often, this would leave a\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":29090,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/12\/13\/awesome-git-addons\/","url_meta":{"origin":29014,"position":4},"title":"Awesome git addons","author":"Leonid Mamchenkov","date":"December 13, 2018","format":false,"excerpt":"Awesome git addons is yet another one of those curated awesome lists.\u00a0 This time it's for git version control tool.\u00a0 And once again, it's mind blowing. Git itself is a very flexible and powerful tool.\u00a0 But it truly amazing how far some people take it.\u00a0 In the list you can\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/12\/git-recent.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/12\/git-recent.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/12\/git-recent.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2018\/12\/git-recent.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":28480,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/04\/18\/why-sqlite-does-not-use-git\/","url_meta":{"origin":29014,"position":5},"title":"Why SQLite Does Not Use Git","author":"Leonid Mamchenkov","date":"April 18, 2018","format":false,"excerpt":"Git is a pretty much standard de facto for version control when it comes to the modern software development.\u00a0 Yet, there are still many projects, companies, and developers who don't use it.\u00a0 Some, like WordPress, for historical reasons - it'll take a lot of work to migrate all of the\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/29014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=29014"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/29014\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=29014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=29014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=29014"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=29014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}