{"id":25,"date":"2014-10-14T17:21:40","date_gmt":"2014-10-14T06:21:40","guid":{"rendered":"http:\/\/madlid.com\/madlid\/?p=25"},"modified":"2014-10-14T17:25:43","modified_gmt":"2014-10-14T06:25:43","slug":"git-unadd","status":"publish","type":"post","link":"https:\/\/madlid.com\/madlid\/2014\/10\/14\/git-unadd\/","title":{"rendered":"git unadd"},"content":{"rendered":"<p>As per http:\/\/pivotallabs.com\/git-unadd\/, you can &#8216;unget&#8217; a file.<br \/>\n<code><br \/>\ngit config --global alias.unadd \"reset HEAD\"<br \/>\n<\/code><br \/>\nYou can then do the following:<br \/>\n<code><br \/>\ngit unget file<br \/>\n<\/code><br \/>\nVery useful, any so much easier to remember than:<br \/>\n<code><br \/>\ngit reset HEAD file<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As per http:\/\/pivotallabs.com\/git-unadd\/, you can &#8216;unget&#8217; a file. git config &#8211;global alias.unadd &#8220;reset HEAD&#8221; You can then do the following: git unget file Very useful, any so much easier to remember than: git reset HEAD file<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-development","category-git"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":4,"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":29,"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/posts\/25\/revisions\/29"}],"wp:attachment":[{"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/madlid.com\/madlid\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}