summaryrefslogtreecommitdiffstats
path: root/gitconfig
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@x220.lan>2020-09-06 16:48:05 +0100
committerMatthew Lemon <lemon@x220.lan>2020-09-06 16:48:05 +0100
commite4640e28c8449eea66392052bfab57ce0cdd27f9 (patch)
tree2be81b55bc37da60599f4e6d434e74a57694962e /gitconfig
first commit
Diffstat (limited to '')
-rw-r--r--gitconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/gitconfig b/gitconfig
new file mode 100644
index 0000000..be0b9e0
--- /dev/null
+++ b/gitconfig
@@ -0,0 +1,27 @@
+[user]
+ email = matt@matthewlemon.com
+ name = Matthew Lemon
+[core]
+ excludesfile = /home/lemon/.gitignore_global
+ quotepath = false
+ editor = /usr/bin/nvim
+[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
+[pull]
+ rebase = false