{"id":397,"date":"2011-08-07T10:20:41","date_gmt":"2011-08-07T17:20:41","guid":{"rendered":"http:\/\/blog.mozilla.org\/axel\/?p=397"},"modified":"2011-08-07T10:20:41","modified_gmt":"2011-08-07T17:20:41","slug":"why-i-hate-git","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/axel\/2011\/08\/07\/why-i-hate-git\/","title":{"rendered":"Why I hate git"},"content":{"rendered":"<pre>wokbok:django-durationRel axelhecht$ git push -f\r\nCounting objects: 7, done.\r\nDelta compression using up to 4 threads.\r\nCompressing objects: 100% (4\/4), done.\r\nWriting objects: 100% (4\/4), 560 bytes, done.\r\nTotal 4 (delta 2), reused 0 (delta 0)\r\nUnpacking objects: 100% (4\/4), done.\r\nremote: error: refusing to update checked out branch: refs\/heads\/master\r\nremote: error: By default, updating the current branch in a non-bare repository\r\nremote: error: is denied, because it will make the index and work tree inconsistent\r\nremote: error: with what you pushed, and will require 'git reset --hard' to match\r\nremote: error: the work tree to HEAD.\r\nremote: error: \r\nremote: error: You can set 'receive.denyCurrentBranch' configuration variable to\r\nremote: error: 'ignore' or 'warn' in the remote repository to allow pushing into\r\nremote: error: its current branch; however, this is not recommended unless you\r\nremote: error: arranged to update its work tree to match what you pushed in some\r\nremote: error: other way.\r\nremote: error: \r\nremote: error: To squelch this message and still keep the default behaviour, set\r\nremote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.\r\nTo \/Users\/axelhecht\/src\/django-durationRel\r\n ! [remote rejected] master -> master (branch is currently checked out)\r\nerror: failed to push some refs to '\/Users\/axelhecht\/src\/django-durationRel'\r\n<\/pre>\n<p>Also known as <code>ux-jargon<\/code> and completely useless.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>wokbok:django-durationRel axelhecht$ git push -f Counting objects: 7, done. Delta compression using up to 4 threads. Compressing objects: 100% (4\/4), done. Writing objects: 100% (4\/4), 560 bytes, done. Total 4 (delta 2), reused 0 (delta 0) Unpacking objects: 100% (4\/4), done. remote: error: refusing to update checked out branch: refs\/heads\/master remote: error: By default, updating [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/posts\/397"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/comments?post=397"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/posts\/397\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/media?parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/categories?post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/axel\/wp-json\/wp\/v2\/tags?post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}