aboutsummaryrefslogtreecommitdiffstats
path: root/gitconfig
diff options
context:
space:
mode:
authorSylvain Herlédan <sylvain.herledan@hrafnagud.info>2017-06-03 12:52:03 +0200
committerSylvain Herlédan <sylvain.herledan@hrafnagud.info>2017-06-03 12:52:03 +0200
commite33ad4f128fb8fef2119cf2c71371eaf9c19bd29 (patch)
tree1fe625b20799889724aad507b8bac0a77258b9ca /gitconfig
downloaddotfiles-e33ad4f128fb8fef2119cf2c71371eaf9c19bd29.tar.gz
dotfiles-e33ad4f128fb8fef2119cf2c71371eaf9c19bd29.tar.bz2
dotfiles-e33ad4f128fb8fef2119cf2c71371eaf9c19bd29.zip
Initial setup with basic tools: vim/dein, tmux, st, tup, X
Diffstat (limited to 'gitconfig')
-rw-r--r--gitconfig44
1 files changed, 44 insertions, 0 deletions
diff --git a/gitconfig b/gitconfig
new file mode 100644
index 0000000..6480c71
--- /dev/null
+++ b/gitconfig
@@ -0,0 +1,44 @@
+[user]
+ name = Sylvain Herlédan
+ email = sylvain.herledan@hrafnagud.info
+
+[alias]
+ co = checkout
+ cp = cherry-pick
+ qlog = log --pretty=oneline --abbrev-commit --graph --decorate
+ unstage = reset HEAD
+ headless = "!sh -c 'if [ $# = 1 ]; then git symbolic-ref HEAD refs/heads/$1 && rm .git/index; else echo \"usage: git headless <branchename>\" >&2 && exit 1; fi' -"
+ origin = remote show origin
+ wdiff = diff --color-words
+ wshow = show --color-words
+ lc = log ORIG_HEAD.. --stat --no-merges
+ k = !gitk
+ commit-submodules = "!subs=$(git ls-files --error-unmatch --stage -- $(git ls-files --modified) | grep ^160000 | cut -f2-); msg=$(echo Submodule updates: $subs; echo; git submodule summary); git commit -e -m \"$msg\" --only $(echo $subs)"
+ mkpatch = diff-tree -p --pretty
+ pushable = push -n origin "refs/heads/*:refs/heads/*"
+ unmerged = ls-files --unmerged
+ whatup = log --stat origin..@{0}
+ lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
+ lgns = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --name-status
+
+[color]
+ branch = true
+ diff = true
+ pager = true
+ status = true
+
+[sendemail]
+ smtpserver = /usr/bin/msmtp
+[push]
+ default = current
+[merge]
+ tool = vimdiff3
+ log = true
+[status]
+ showUntrackedFiles = no
+[mergetool "vimdiff3"]
+ cmd = vim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\"
+[format]
+ headers = "Content-Type: text/plain; charset=\"utf-8\""
+[core]
+ editor = vim