{"id":7342,"date":"2018-07-15T11:57:05","date_gmt":"2018-07-15T15:57:05","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=7342"},"modified":"2018-07-15T11:57:05","modified_gmt":"2018-07-15T15:57:05","slug":"run-a-raw-git-command-from-within-magit","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=7342","title":{"rendered":"Run a Raw Git Command From Within Magit"},"content":{"rendered":"<p> There isn&rsquo;t much git work that you can&rsquo;t do from within Magit but occasionally it&rsquo;s convenient to call git directly. In another great tip from Wilfred Hughes&rsquo; <a href=\"https:\/\/twitter.com\/ecotd?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1015309415422013442&amp;ref_url=file:\/\/\/Users\/jcs\/org\/blog\/raw-git-cmd.html\">Emacs Command of the Day<\/a> we have: <\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p lang=\"en\" dir=\"ltr\">Want to run a raw git command inside of <a href=\"https:\/\/twitter.com\/magit_emacs?ref_src=twsrc%5Etfw\">@magit_emacs<\/a>?<\/p>\n<p>! ! (which is magit-git-command-topdir) inside a magit buffer.<\/p>\n<p>This is really useful if you have custom git aliases, or if you want to use globbing (e.g. &#39;git rm -r old-dir*&#39;). <a href=\"https:\/\/t.co\/kyjB34MpN1\">pic.twitter.com\/kyjB34MpN1<\/a><\/p>\n<p>&mdash; \u24ba Command of the Day (@ecotd) <a href=\"https:\/\/twitter.com\/ecotd\/status\/1015309415422013442?ref_src=twsrc%5Etfw\">July 6, 2018<\/a><\/p><\/blockquote>\n<p> <script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script> <\/p>\n<p> You probably won&rsquo;t use it often but it&rsquo;s really nice to have the capability. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>There isn&rsquo;t much git work that you can&rsquo;t do from within Magit but occasionally it&rsquo;s convenient to call git directly. In another great tip from Wilfred Hughes&rsquo; Emacs Command of the Day we have: Want to run a raw git &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=7342\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18,59],"class_list":["post-7342","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs","tag-magit"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7342"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7342\/revisions"}],"predecessor-version":[{"id":7343,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7342\/revisions\/7343"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}