summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2020-11-14 11:01:12 +0100
committerGitHub <noreply@github.com>2020-11-14 11:01:12 +0100
commit2359e388ea7b3292dbc6b6aacb01791ccc5eba2e (patch)
tree2415f88182028f7643d17ba01299cc0d4f5ffcf3 /git
parent82c5f99542f9bf8d29cc0ccd7d57a52c4c5400c4 (diff)
Create .gitconfig
Diffstat (limited to 'git')
-rw-r--r--git/.gitconfig34
1 files changed, 34 insertions, 0 deletions
diff --git a/git/.gitconfig b/git/.gitconfig
new file mode 100644
index 0000000..6a91637
--- /dev/null
+++ b/git/.gitconfig
@@ -0,0 +1,34 @@
+[user]
+ name = Santo Cariotti
+ email = santo@dcariotti.me
+[alias]
+ ci = commit
+ co = checkout
+ logs = log --graph --branches --remotes --tags --pretty=format':%C(yellow)%h%C(green)%d%Creset %s %C(yellow)|%Creset %C(cyan)%an <%ae> %C(yellow)| %C(white)%aD %C(red)(%ar)%Creset'
+ s = status
+ fd = "!f() { git l --grep=$1; }; f"
+ amend = commit --amend
+[credential]
+ helper = store
+[core]
+ editor = vim
+ pager = delta
+[init]
+ defaultBranch = main
+[grep]
+ lineNumber = true
+[color "grep"]
+ lineNumber = yellow
+ match = red bold
+ filename = cyan
+[merge]
+ tool = vimdiff
+ conflictstyle = diff3
+[mergetool]
+ prompt = false
+[interactive]
+ diffFilter = delta --color-only
+[delta]
+ features = side-by-side line-numbers decorations
+[pull]
+ rebase = false