{"id":278,"date":"2010-12-09T22:56:59","date_gmt":"2010-12-09T21:56:59","guid":{"rendered":"https:\/\/www.dont-panic.cc\/capi\/?p=278"},"modified":"2010-12-09T22:58:10","modified_gmt":"2010-12-09T21:58:10","slug":"the-power-of-git-aliases","status":"publish","type":"post","link":"https:\/\/www.dont-panic.cc\/capi\/2010\/12\/09\/the-power-of-git-aliases\/","title":{"rendered":"The power of git aliases"},"content":{"rendered":"<p>Based on a <a href=\"http:\/\/stackoverflow.com\/questions\/4298960\/git-add-a-git-commit-in-one-command\/\">recent question<\/a> on <a href=\"http:\/\/stackoverflow.com\/\">stackoverflow<\/a> I found the power of <a href=\"http:\/\/git-scm.com\/\">git<\/a> <a href=\"https:\/\/git.wiki.kernel.org\/index.php\/Aliases\">aliases<\/a> and want so share one I invented for <a href=\"http:\/\/stackoverflow.com\/questions\/4298960\/git-add-a-git-commit-in-one-command\/4299159#4299159\">answering<\/a> the question and after that I found very useful in everyday git use:<\/p>\n<blockquote><p><code>git config --global alias.add-commit '!git add -A &amp;&amp; git commit'<\/code><\/p><\/blockquote>\n<p>After this, you can simply check in all new, modified, and deleted files with a simple<\/p>\n<blockquote><p><code>git add-commit -m 'My commit message'<\/code><\/p><\/blockquote>\n<p>I have aliased this command also to <code> git ac<\/code> in order to save further on typing. I never thought that this combination could be that useful, but actually I think it really is. Thanks to the questioner for bringing the idea up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Based on a recent question on stackoverflow I found the power of git aliases and want so share one I invented for answering the question and after that I found very useful in everyday git use: git config &#8211;global alias.add-commit &#8216;!git add -A &amp;&amp; git commit&#8217; After this, you can simply check in all new, &hellip; <a href=\"https:\/\/www.dont-panic.cc\/capi\/2010\/12\/09\/the-power-of-git-aliases\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;The power of git aliases&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[225,131,213,212],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-computer","category-development","tag-development","tag-git","tag-productivity","tag-tricks"],"_links":{"self":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":5,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/278\/revisions\/293"}],"wp:attachment":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}