{"id":853,"date":"2015-09-04T15:06:22","date_gmt":"2015-09-04T14:06:22","guid":{"rendered":"http:\/\/trigonakis.com\/blog\/?p=853"},"modified":"2015-09-04T15:06:22","modified_gmt":"2015-09-04T14:06:22","slug":"git-completely-revert-the-last-commit","status":"publish","type":"post","link":"http:\/\/trigonakis.com\/blog\/2015\/09\/04\/git-completely-revert-the-last-commit\/","title":{"rendered":"git: Completely revert the last commit"},"content":{"rendered":"<div class=\"seriesmeta\">This entry is part 6 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 reset --hard HEAD~1\r\n<\/pre>\n<p>will completely revert the last commit (i.e., <strong>everything from this commit will disappear<\/strong>).<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"seriesmeta\">This entry is part 6 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 reset &#8211;hard HEAD~1 will completely revert the last commit (i.e., everything from this commit will disappear).<\/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],"tags":[208,219],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ouW6-dL","_links":{"self":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/853"}],"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=853"}],"version-history":[{"count":1,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":854,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/853\/revisions\/854"}],"wp:attachment":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}