add git-settings.sh
... so that I can easily curl | sh my git settings into existence. Signed-off-by: Max R. Carrara <max@aequito.sh>
This commit is contained in:
commit
f9f86e3428
1 changed files with 45 additions and 0 deletions
45
git-settings.sh
Executable file
45
git-settings.sh
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
if ! which git > /dev/null 2>&1; then
|
||||
echo "'git' not installed. Exiting.";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
git config --global alias.blame 'blame -w -C -C -C'
|
||||
|
||||
git config --global branch.sort -committerdate
|
||||
|
||||
git config --global column.ui auto
|
||||
|
||||
git config --global commit.verbose true
|
||||
|
||||
git config --global core.excludesfile ~/.gitignore
|
||||
git config --global core.fsmonitor true
|
||||
git config --global core.untrackedCache true
|
||||
|
||||
git config --global diff.algorithm histogram
|
||||
git config --global diff.colorMoved plain
|
||||
git config --global diff.mnemonicPrefix true
|
||||
git config --global diff.renames true
|
||||
|
||||
git config --global fetch.all true
|
||||
git config --global fetch.prune true
|
||||
git config --global fetch.pruneTags true
|
||||
|
||||
git config --global init.defaultBranch main
|
||||
|
||||
git config --global merge.conflictstyle zdiff3
|
||||
|
||||
git config --global pull.rebase true
|
||||
|
||||
git config --global push.autoSetupRemote true
|
||||
git config --global push.default simple
|
||||
git config --global push.followTags true
|
||||
|
||||
git config --global rebase.updateRefs true
|
||||
|
||||
git config --global rerere.autoupdate true
|
||||
git config --global rerere.enabled true
|
||||
|
||||
git config --global tag.sort version:refname
|
||||
|
||||
Loading…
Add table
Reference in a new issue