Git tricks - abhijeetk/chromium-development GitHub Wiki

  • Remove all local branches except 'master': git branch | grep -v '^*' | xargs git branch -D
  • Find deleted files in git : git log --pretty=format:"%h%x09%an%x09%ad%x09%s" --diff-filter=D --summary
  • Find all modified files by user or company git log --pretty="%H" [email protected] | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq |wc -l OR git log --pretty= [email protected] --name-only | sort -u | wc -l