Skip to content

Instantly share code, notes, and snippets.

@rinfz
Created December 17, 2018 10:35
Show Gist options
  • Save rinfz/3b9ca6f0be4e27d80860940c197aec47 to your computer and use it in GitHub Desktop.
Save rinfz/3b9ca6f0be4e27d80860940c197aec47 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
st = status
co = checkout
l = log
d = diff
db = !git diff -w origin/master...
ci = commit
br = !git --no-pager branch --sort=committerdate
ca = !git commit --amend --no-edit --date=now
uw = !git reset @~
de = !git diff origin/master... -- . \":(exclude)*.csv\" \":(exclude)*.json\" \":(exclude)*.xlsx\" \":(exclude)*.txt\"
des = !git diff origin/master... --shortstat -- . \":(exclude)*.csv\" \":(exclude)*.json\" \":(exclude)*.xlsx\" \":(exclude)*.txt\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment