{"id":16448,"date":"2012-07-11T11:52:03","date_gmt":"2012-07-11T09:52:03","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=16448"},"modified":"2012-07-11T20:21:19","modified_gmt":"2012-07-11T18:21:19","slug":"huge-huge-thanks-to-git-bisect-i-just-sorted-out","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2012\/07\/11\/huge-huge-thanks-to-git-bisect-i-just-sorted-out\/","title":{"rendered":"Huge, huge thanks to git bisect! With its help, I &#8230;"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>Huge, huge thanks to <a href=\"http:\/\/git-scm.com\/docs\/git-bisect\">git bisect<\/a>! With its help, I just sorted out a huge argument about who removed a piece of code and when. \u00a0With an actively developed project among few developers and branches, it&#8217;s not trivial to say when the change was introduced. \u00a0Unless, of course, you are using <a href=\"http:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/git-bisect.html\">git bisect<\/a>. \u00a0Every developer should know how to use it.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Huge, huge thanks to git bisect! With its help, I just sorted out a huge argument about who removed a piece of code and when. \u00a0With an actively developed project among few developers and branches, it&#8217;s not trivial to say when the change was introduced. \u00a0Unless, of course, you are using git bisect. \u00a0Every developer &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2012\/07\/11\/huge-huge-thanks-to-git-bisect-i-just-sorted-out\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Huge, huge thanks to git bisect! With its help, I &#8230;<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"status","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":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"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],"tags":[2265,989,1588,17],"keyring_services":[],"class_list":["post-16448","post","type-post","status-publish","format-status","hentry","category-general","category-programming","category-technology","tag-git","tag-troubleshooting","tag-version-control","tag-work","post_format-post-format-status"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":14618,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/03\/18\/debugging-with-git-bisect\/","url_meta":{"origin":16448,"position":0},"title":"Debugging with git bisect","author":"Leonid Mamchenkov","date":"March 18, 2011","format":false,"excerpt":"Via Sebastian Bergmann's blog I've learned about git bisect and how it can used for debugging. \u00a0Sebastian demonstrates the functionality together with PHPUnit. \u00a0I am a git newbie, so that was quite interesting for me. git bisect can be used to find the change that introduced a bug. It does\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":15270,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/07\/04\/day-in-brief-2011-07-04\/","url_meta":{"origin":16448,"position":1},"title":"Day in brief &#8211; 2011-07-04","author":"Leonid Mamchenkov","date":"July 4, 2011","format":false,"excerpt":"Shared: Are You Ready for WordPress 3.2? http:\/\/bit.ly\/mvLceT # Start your Monday morning with troubleshooting MSIE and it will set your mood for the whole week. # I just found a commit that broke things for me, using git bisect. Pretty cool. Git Book - Finding Issues - Git Bisect\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":21877,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/05\/29\/gitjk-undo-what-you-just-did-in-git\/","url_meta":{"origin":16448,"position":2},"title":"gitjk &#8211; undo what you just did in git","author":"Leonid Mamchenkov","date":"May 29, 2014","format":"link","excerpt":"gitjk - undo what you just did in git. Supports the following git commands: add, archive, branch, cat-file, checkout, clone, commit, diff, fetch, grep, init, log, ls-tree, merge, mv, pull, push, remote, revert, rm, show, stash,status. Support for the following git commands is not implemented: bisect, fsck, gc, prune, rebase,\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":27671,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/06\/08\/git-commit-good-practice\/","url_meta":{"origin":16448,"position":3},"title":"Git Commit Good Practice","author":"Leonid Mamchenkov","date":"June 8, 2017","format":false,"excerpt":"Open Stack wiki has an excellent guide on how to create good commits. \u00a0In a few places it is too specific to Open Stack development practices, but overall it's one of the best guides I've seen for any project using git. It is basically split into two sections. \u00a0One on\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\/2017\/06\/git_commit.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":26685,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/09\/12\/git-history-of-a-source-code-line\/","url_meta":{"origin":16448,"position":4},"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":26280,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/07\/24\/git-from-the-inside-out\/","url_meta":{"origin":16448,"position":5},"title":"Git from the inside out","author":"Leonid Mamchenkov","date":"July 24, 2016","format":false,"excerpt":"Git from the inside out - must be the best thing I've ever seen on how git works. \u00a0Everybody knows that git is awesome. \u00a0Most know that git is implemented with graphs. \u00a0But not many know how exactly git stores the project history and how it is affected by different\u2026","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\/2016\/07\/git-500x149.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/16448","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=16448"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/16448\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=16448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=16448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=16448"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=16448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}