... so that I can easily curl | sh my git settings into existence. Signed-off-by: Max R. Carrara <max@aequito.sh>
45 lines
1.1 KiB
Bash
Executable file
45 lines
1.1 KiB
Bash
Executable file
#!/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
|
|
|