Skip to content

Instantly share code, notes, and snippets.

@frenata
Created January 20, 2022 02:53
Show Gist options
  • Save frenata/6b06786446882fde77b0e41c0a69d560 to your computer and use it in GitHub Desktop.
Save frenata/6b06786446882fde77b0e41c0a69d560 to your computer and use it in GitHub Desktop.
# This is Git's per-user configuration file.
[alias]
hist = log --all --decorate --oneline --graph
up = !git checkout master && git pull && git checkout - && git rebase master
pf = push --force-with-lease
bs = branch -v
grep-all = !git grep $1 $(git rev-list --all)
code-changes = "!git log --format=format: --name-only | egrep -v '^$' | sort | uniq -c | sort -rg | head -10"
cc = "!git code-changes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment