Skip to content

Instantly share code, notes, and snippets.

@W-Floyd
Last active May 10, 2017 07:53
Show Gist options
  • Save W-Floyd/339f6d57e5f02b76f828a492cd8dd873 to your computer and use it in GitHub Desktop.
Save W-Floyd/339f6d57e5f02b76f828a492cd8dd873 to your computer and use it in GitHub Desktop.
Git Aliases
uncommit = reset HEAD^
cm = commit -S --signoff
diffit = diff origin/HEAD HEAD
unstage = reset HEAD
discard = checkout --
ls = log --pretty=format:'%C(auto,yellow)%h %C(auto,red)%ad %C(auto,blue)%an%C(auto,green)%d %Creset%s' --date=short --all --graph
lr = log --pretty=format:'%C(auto,yellow)%h %C(auto,red)%ad %C(auto,blue)%an%C(auto,green)%d %Creset%s' --date=relative --all --graph
bleach = "!git checkout -- . && git clean -fxd"
la = "!git config -l | grep alias | cut -c 7-"
ps = "!f() { echo $(git merge-base HEAD origin/master)..HEAD | git pack-objects --revs --thin --stdout --all-progress-implied -q | wc -c | numfmt --to=iec-i; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment