Skip to content

Instantly share code, notes, and snippets.

@Art2B
Last active March 6, 2019 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Art2B/24bd8cb13daa6e2a0e1d0d8dcedbee35 to your computer and use it in GitHub Desktop.
Save Art2B/24bd8cb13daa6e2a0e1d0d8dcedbee35 to your computer and use it in GitHub Desktop.
My gitconfig
# README
# Make sure you replace the user infos and gitmessage path infos before using this gist.
# git branch -d $(git branch --merged=origin/develop | tr "\n" " " | sed 's/* //g' | sed 's/develop //g')
[user]
name = Arthur battut
email = a.battut@catchdigital.com
[color]
ui = auto
[alias]
st = status
ci = commit
co = checkout
ll = log --oneline --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset'
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset'
# fetch latest data from remote repo, but do not update local checkout and then display differences
ulg = !(git fetch && git lg ..@{u})
tb = reset --hard HEAD
# git today YYYY-MM-DD show the commits made on a specific day
today = ! git reflog --date=iso | grep `date +%Y-%m-%d` | grep commit
[core]
pager = diff-so-fancy | less --tabs=1.5 -RFX
whitespace = -trailing-space
editor = vim
[diff]
mnemonicPrefix = true
wordRegex = .
[fetch]
recurseSubmodules = on-demand
[grep]
extendedRegexp = true
[log]
abbrevCommit = true
[merge]
conflictStyle = diff3
[mergetool]
keepBackup = false
keepTemporaries = false
prompt = false
[pull]
# This is GREAT... when you know what you're doing and are careful
# not to pull --no-rebase over a local line containing a true merge.
rebase = preserve
[push]
default = upstream
[status]
submoduleSummary = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment