{"id":817,"date":"2014-09-30T12:07:21","date_gmt":"2014-09-30T11:07:21","guid":{"rendered":"http:\/\/trigonakis.com\/blog\/?p=817"},"modified":"2015-09-04T15:01:37","modified_gmt":"2015-09-04T14:01:37","slug":"git-how-to-checkout-a-specific-commitversion-to-a-new-branch","status":"publish","type":"post","link":"http:\/\/trigonakis.com\/blog\/2014\/09\/30\/git-how-to-checkout-a-specific-commitversion-to-a-new-branch\/","title":{"rendered":"git: How to checkout a specific commit\/version to a new branch"},"content":{"rendered":"<div class=\"seriesmeta\">This entry is part 5 of 7 in the series <a href=\"http:\/\/trigonakis.com\/blog\/series\/git-howtos\/\" class=\"series-207\" title=\"git: useful HOWTOs\">git: useful HOWTOs<\/a><\/div><pre lang=\"bash\">\r\ngit checkout -b branch--new commit-hash\r\n<\/pre>\n<p>will checkout the <code>commit-hash<\/code> commit in a new branch called <code>branch-new<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"seriesmeta\">This entry is part 5 of 7 in the series <a href=\"http:\/\/trigonakis.com\/blog\/series\/git-howtos\/\" class=\"series-207\" title=\"git: useful HOWTOs\">git: useful HOWTOs<\/a><\/div><p>git checkout -b branch&#8211;new commit-hash will checkout the commit-hash commit in a new branch called branch-new.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[37,28,1],"tags":[217,216,208],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ouW6-db","_links":{"self":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/817"}],"collection":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/comments?post=817"}],"version-history":[{"count":2,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/817\/revisions"}],"predecessor-version":[{"id":819,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/817\/revisions\/819"}],"wp:attachment":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/media?parent=817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/categories?post=817"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/tags?post=817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}