Skip to content

Instantly share code, notes, and snippets.

@fvnilo
Last active August 5, 2019 15:00
Show Gist options
  • Select an option

  • Save fvnilo/5102846dd235621da0a16cdd06c10a19 to your computer and use it in GitHub Desktop.

Select an option

Save fvnilo/5102846dd235621da0a16cdd06c10a19 to your computer and use it in GitHub Desktop.
git aliases
[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