{"id":703,"date":"2020-07-22T10:33:28","date_gmt":"2020-07-22T10:33:28","guid":{"rendered":"http:\/\/hslomka.de\/techno\/?p=703"},"modified":"2026-03-16T15:25:33","modified_gmt":"2026-03-16T15:25:33","slug":"git-einstellungen","status":"publish","type":"post","link":"https:\/\/techno.slomka.biz\/?p=703","title":{"rendered":"git Settings"},"content":{"rendered":"\n<p>Here are a few Git settings that have proven effective for me in working efficiently:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">General Settings<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#EEFFFF;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git config --global branch.autosetupmerge true\ngit config --global push.default tracking<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">branch.autosetupmerge<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">push.default<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">tracking<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Display Settings<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#EEFFFF;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git config --global log.decorate short\ngit config --global color.ui auto\ngit config --global color.interactive auto\ngit config --global color.diff auto\ngit config --global color.branch auto\ngit config --global color.status auto\ngit config --global pager.status true\ngit config --global pager.show-branch true\ngit config --global format.numbered auto<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">log.decorate<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">short<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">color.ui<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">auto<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">color.interactive<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">auto<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">color.diff<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">auto<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">color.branch<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">auto<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">color.status<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">auto<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">pager.status<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">pager.show-branch<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">format.numbered<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">auto<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Shortcuts \/ Alias<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#EEFFFF;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git config --global alias.st status\ngit config --global alias.ci commit\ngit config --global alias.co checkout\ngit config --global alias.ru \"remote update\"\ngit config --global alias.br branch\ngit config --global alias.cam \"commit -a -m\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">alias.st<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">status<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">alias.ci<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">commit<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">alias.co<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">checkout<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">alias.ru<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">remote update<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">alias.br<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">branch<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">config<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--global<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">alias.cam<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">commit -a -m<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">PowerShell alias Beautification<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#EEFFFF;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">git<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">log<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--pretty=format:<\/span><span style=\"color: #89DDFF\">&#39;<\/span><span style=\"color: #C3E88D\">%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s<\/span><span style=\"color: #89DDFF\">&#39;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--date=short<\/span><\/span><\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here are a few Git settings that have proven effective for me in working efficiently: General Settings Display Settings Shortcuts \/ Alias PowerShell alias Beautification<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[62],"class_list":["post-703","post","type-post","status-publish","format-standard","hentry","category-git","tag-git"],"_links":{"self":[{"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=\/wp\/v2\/posts\/703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=703"}],"version-history":[{"count":3,"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions"}],"predecessor-version":[{"id":1118,"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions\/1118"}],"wp:attachment":[{"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techno.slomka.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}