Last active
May 10, 2017 07:53
-
-
Save W-Floyd/339f6d57e5f02b76f828a492cd8dd873 to your computer and use it in GitHub Desktop.
Git Aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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