Skip to content

Instantly share code, notes, and snippets.

@moreau-nicolas
Last active October 21, 2019 20:11
Show Gist options
  • Save moreau-nicolas/56e8a3c33c5410e4a1ac548dcb9b3582 to your computer and use it in GitHub Desktop.
Save moreau-nicolas/56e8a3c33c5410e4a1ac548dcb9b3582 to your computer and use it in GitHub Desktop.
My Git configuration file
[alias]
git = ! git
st = status
ci = commit
co = checkout
glog = log --graph --oneline --decorate --branches --tags --date-order --full-history
lg = log --graph --decorate --date-order --full-history --pretty=format:'%C(yellow)%h%Creset <%C(red)%an%Creset> (%C(green)%ai%Creset)%C(auto)%d%Creset %s'
lga = log --graph --decorate --date-order --full-history --pretty=format:'%C(yellow)%h%Creset <%C(red)%an%Creset> (%C(green)%ai%Creset)%C(auto)%d%Creset %s' --all
incoming = ! git fetch --quiet && git log --graph --oneline --date-order --full-history ..@{u}
outgoing = ! git fetch --quiet && git log --graph --oneline --date-order --full-history @{u}..
incoming-all = ! git fetch --quiet && git for-each-ref --format='%(refname:short)' refs/heads | xargs -I {} git log --graph --oneline --decorate --date-order --full-history {}..{}@{u}
outgoing-all = ! git fetch --quiet && git for-each-ref --format='%(refname:short)' refs/heads | xargs -I {} git log --graph --oneline --decorate --date-order --full-history {}@{u}..{}
forget = update-index --assume-unchanged
unforget = update-index --no-assume-unchanged
forgotten = ! git ls-files -v | grep ^[a-z]
vimdiff = difftool --no-prompt --tool=vimdiff
[color]
ui = auto
[core]
editor = vim
[pull]
rebase = merges
[rebase]
autostash = true
[push]
default = simple
[user]
name = Nicolas MOREAU
email = moreau-nicolas@users.noreply.github.com
[core]
preloadindex = true
fscache = true
autocrlf = input
[remote "origin"]
prune = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment