Last active
August 5, 2019 15:00
-
-
Save fvnilo/5102846dd235621da0a16cdd06c10a19 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
| [alias] | |
| tidy = "!f() { \ | |
| git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done; \ | |
| }; f" | |
| lga = "log --oneline --all --decorate --graph" | |
| ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
| le = log --oneline --decorate | |
| filelog = log -u | |
| fl = log -u | |
| f = "!git ls-files | grep -i" | |
| grep = grep -Ii | |
| gr = grep -Ii | |
| la = "!git config -l | grep alias | cut -c 7-" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment