Set git config system wide

This commit is contained in:
Manuel Thalmann 2024-07-15 14:47:06 +02:00
parent cd81edf1a7
commit 0ae0fd8afe

View file

@ -3,9 +3,13 @@ begin
source "$(status dirname)/../../Scripts/software.fish" source "$(status dirname)/../../Scripts/software.fish"
function configureSW -S function configureSW -S
git config --global init.defaultBranch "main" function setConfig
git config --global user.name "Manuel Thalmann" sudo git config --system $argv
git config --global user.email "m@nuth.ch" end
setConfig init.defaultBranch "main"
setConfig user.name "Manuel Thalmann"
setConfig user.email "m@nuth.ch"
begin # Git Flow begin # Git Flow
set -l dir (mktemp -d) set -l dir (mktemp -d)
@ -17,39 +21,39 @@ begin
git branch main || true &> /dev/null git branch main || true &> /dev/null
git branch dev || true &> /dev/null git branch dev || true &> /dev/null
yes "" | git flow init &> /dev/null yes "" | git flow init &> /dev/null
git flow config set --global master main > /dev/null sudo git flow config set --system master main > /dev/null
git flow config set --global develop dev > /dev/null sudo git flow config set --system develop dev > /dev/null
popd > /dev/null popd > /dev/null
rm -rf "$dir" rm -rf "$dir"
end end
git config --global alias.ahfange init setConfig alias.ahfange init
git config --global alias.tuedezue add setConfig alias.tuedezue add
git config --global alias.beschuldig blame setConfig alias.beschuldig blame
git config --global alias.zieh pull setConfig alias.zieh pull
git config --global alias.druck push setConfig alias.druck push
git config --global alias.machnah clone setConfig alias.machnah clone
git config --global alias.hol fetch setConfig alias.hol fetch
git config --global alias.zwiigab branch setConfig alias.zwiigab branch
git config --global alias.buechiih commit setConfig alias.buechiih commit
git config --global alias.eich rebase setConfig alias.eich rebase
git config --global alias.erd rebase setConfig alias.erd rebase
git config --global alias.gahufwiifelde rebase setConfig alias.gahufwiifelde rebase
git config --global alias.vergliich diff setConfig alias.vergliich diff
git config --global alias.tuezemme merge setConfig alias.tuezemme merge
git config --global alias.versorg stash setConfig alias.versorg stash
git config --global alias.markier tag setConfig alias.markier tag
git config --global alias.pflueckoepfel cherry-pick setConfig alias.pflueckoepfel cherry-pick
git config --global alias.pflueckhimbeeri cherry-pick setConfig alias.pflueckhimbeeri cherry-pick
git config --global alias.buechuus checkout setConfig alias.buechuus checkout
git config --global alias.quaetsch 'merge --squash' setConfig alias.quaetsch 'merge --squash'
git config --global alias.pfudle 'push --force' setConfig alias.pfudle 'push --force'
git config --global alias.beschuldigung blame setConfig alias.beschuldigung blame
git config --global alias.zwiigli branch setConfig alias.zwiigli branch
git config --global alias.tagebuech log setConfig alias.tagebuech log
git config --global alias.versteck stash setConfig alias.versteck stash
git config --global alias.zuestand status setConfig alias.zuestand status
git config --global alias.markierig tag setConfig alias.markierig tag
end end
end end