Skip to content

Instantly share code, notes, and snippets.

@arekolek
Created February 3, 2017 11:06
Show Gist options
  • Save arekolek/ee7c6d729e52d1d77a331111c64a5f6e to your computer and use it in GitHub Desktop.
Save arekolek/ee7c6d729e52d1d77a331111c64a5f6e to your computer and use it in GitHub Desktop.
Helpful aliases for Git
[alias]
st = status
aliases = config --get-regexp ^alias\\.
precommit = diff --cached --minimal -w
amend = commit --amend
discard = checkout --
unstage = reset HEAD --
stashes = stash list
save = commit -m
graph = log --graph --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
branchout = checkout -b
branches = branch -a
[color]
ui = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment