Skip to content

Instantly share code, notes, and snippets.

@dexfs
Created August 6, 2020 18:34
Show Gist options
  • Save dexfs/7b457482e08690fc7b6af73eeb571e6a to your computer and use it in GitHub Desktop.
Save dexfs/7b457482e08690fc7b6af73eeb571e6a to your computer and use it in GitHub Desktop.
[color]
ui = true
[core]
editor = vim
excludesfile = /Users/andresantos/.gitignore
autocrlf = input
[alias]
aliases = config --get-regexp alias
br = branch
ca = commit -v -a
cam = commit --amend
ci = commit
c = !git add --all && git commit -m
co = checkout
cp = cherry-pick
cb = "!git branch --merged | egrep -v '(^\\*|master|production)' | xargs git branch -d"
d = diff
dc = diff --cached
dm = diff master
gf = fetch
gfprune = fetch --all --prune
fix = commit --amend -C HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg2 = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
l = !git log --pretty=format:'%C(blue)%h %C(red)%d %C(white)%s - %C()cyan%cn, %C(green)%cr'
m = merge --no-ff
mf = merge --ff-only
p = push
pl = pull
r = reset
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --ignore
ss = stash
sa = stash apply
sp = stash pop
st = status
sts = status -s
sf = show --name-only
unstage = reset HEAD
wdiff = diff --word-diff
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lgsort = for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
undo = checkout --
rollback = reset --soft HEAD~1
highscores = shortlog -sn
[help]
autocorrect = 1
format = web
[branch]
autosetupmerge = true
[commit]
gpgsign = true
[user]
signingkey = 9CE39082D1132F34
name = Andre Santos
email = andre@dexdev.com.br
[gpg]
program = /usr/local/bin/gpg
[log]
date = rfc
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Users/andresantos/Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment