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