Skip to content

Instantly share code, notes, and snippets.

@andersonvom
Created September 11, 2014 22:27
Show Gist options
  • Save andersonvom/5557f3c956425b3d6f11 to your computer and use it in GitHub Desktop.
Save andersonvom/5557f3c956425b3d6f11 to your computer and use it in GitHub Desktop.
Common GIT shortcuts - .gitconfig
[user]
name = Anderson Mesquita
email = [email protected]
[color]
ui = true
pager = true
[alias]
ci = commit
co = checkout
cp = cherry-pick
d = diff
dc = diff --cached
ds = diff --stat -r
dstat = diff --stat -r
fall = fetch --all
l = log --no-merges
s = status
st = status
logs = log -n 20
rebc = rebase --continue
showf = show --format=full
shows = show --stat
upmaster = reset --hard upstream/master
[format]
pretty = format:"%h %C(yellow)%ci%C(reset) %C(green)%an%C(reset) |%C(yellow)%C(bold)%d%C(reset) %s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment