Skip to content

Instantly share code, notes, and snippets.

View gitcheats.txt
# get list of all author's emails of the repo
git log --format="%ae" | uniq
# shortform git commands
alias g='git'
# show contents of all git objects in a git repo
find .git/objects/ -type f \| sed 's/\.git\/objects\/\///' | sed 's/\///g' | xargs -n1 -I% echo echo "%" \$\(git cat-file -p "%"\) \0 | xargs -n1 -0 sh -c
# push all branches to all remotes