diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..22e9c68 --- /dev/null +++ b/gitconfig @@ -0,0 +1,51 @@ +[core] + excludesfile = ~/.gitignore + editor = vim + whitespace = trailing-space,space-before-tab + autocrlf = false + safecrlf = true + preloadindex = 1 + pager=less -R + +[apply] + whitespace = fix + +[color] + ui = auto + interactive = true + status = true + branch = true + diff = true + +[push] + default = tracking + +[alias] + lol = log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit + st = status -sb + lerl = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit + changelog = log --graph --pretty=format:'[%h] -%d %s (%cr) (%an)' --abbrev-commit --no-merges + df = diff + rpull = pull --rebase --stat + pullr = pull --rebase + unstage = reset + dfc = diff --cached + mergemaster = mergetool + ci = commit -v + push-with-tags = "!git push && git push --tags" + pull-with-submodules = "!git pull && git submodule update --init" + rpull-with-submodules = "!git pull --rebase --stat && git submodule update --init" + +[merge] + tool = vimdiff + +[mergetool "fugitive"] + cmd =fugitive vim -f -c \"Gdiff\" \"$MERGED\" + +[user] + email = c0de@c0defox.es + name = David Todd + +[include] + path = ~/.githubtokens + path = ~/.dotoverrides/gitconfig