aboutsummaryrefslogtreecommitdiffstats
path: root/gitconfig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gitconfig36
1 files changed, 36 insertions, 0 deletions
diff --git a/gitconfig b/gitconfig
new file mode 100644
index 0000000..f144110
--- /dev/null
+++ b/gitconfig
@@ -0,0 +1,36 @@
+[user]
+ email = matt@matthewlemon.com
+ name = Matthew Lemon
+[core]
+ excludesfile = /home/lemon/.gitignore_global
+ quotepath = false
+ editor = /usr/local/bin/vim
+[alias]
+ co = checkout
+ ci = commit
+ br = branch
+ # friendly statuses
+ st = status -sb --ignore-submodules=all
+ # Add all unstaged changes/removals and commit. All you gotta do here is pass the commit message.
+ # Example: git ac 'My commit message'
+ ac = !git add -A && git commit -m
+ # Pretty looking log
+ lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
+ d = difftool
+[push]
+ default = simple
+[diff]
+ tool = vimdiff
+[difftool]
+ prompt = false
+[color]
+ ui = true
+ branch = true
+ diff = true
+ interactive = true
+ status = true
+ log = false
+[pull]
+ rebase = false
+[init]
+ defaultBranch = master