From 653ad00615a0ff901e3dc10b5cdb63301b36c94e Mon Sep 17 00:00:00 2001 From: bretello Date: Sun, 22 Nov 2020 16:58:46 +0100 Subject: [PATCH] add gitconfig, update install script --- gitconfig | 20 ++++++++++++++++++++ install.sh | 10 +--------- 2 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 gitconfig diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..4c5fe32 --- /dev/null +++ b/gitconfig @@ -0,0 +1,20 @@ +[core] +excludesfile = ~/.gitignore + +[pull] +ff = only +rebase = true + +[merge] +ff = only +tool = vimdiff2 + +[diff] +tool = vimdiff2 + +[rebase] +autostash = true +autosquash = true + +[log] +abbrevcommit = true diff --git a/install.sh b/install.sh index c20381f..ae666f1 100755 --- a/install.sh +++ b/install.sh @@ -21,15 +21,7 @@ PACKAGES="vim zsh antibody git grc ccze bmon mtr tmux byobu htop baantibody path function setup_git { # set up some git stuff - git config --global pull.ff only - git config --global merge.ff only - git config --global merge.tool vimdiff - - git config --global rebase.autosquash true - git config --global rebase.autostash true - - git config --global log.abbrevcommit yes - + git config --global include.path $DOTFILES/gitconfig } function install_vimrc {