Commit bf2337fc authored by François Magimel's avatar François Magimel
Browse files

Dotfiles / git: add gitconfig

parent e6d528b5
[user]
name = François Magimel
[core]
editor = vim
pager = less -r
#filemode = false
[color]
ui = true
[diff]
# external = git-meld
submodule = log
[merge]
#summary = true
tool = meld
[alias]
st = status
co = checkout
br = branch
up = rebase
ci = commit
logl = log --pretty=oneline --abbrev-commit
logs = log --stat
lga = log --oneline --abbrev-commit --all --graph --decorate --color
#http://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit
recent-branches = !git for-each-ref --count=5 --sort=-committerdate refs/heads/ --format='%(refname:short)'
wdiff = diff --color-words
cdiff = diff --cached
spush = push --recurse-submodules=on-demand
pr = !sh -c \"git fetch upstream pull/${1}/head:pr/${1} && git checkout pr/${1}\" # django
[gitreview]
username = linkid
[status]
submoduleSummary = true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment