Files changed in current branch relatively to some other branch:
git checkout <notMainDev>
git diff --name-only <mainDev>
Take .js and .jsx file names from log and feed them to prettier rewiting them with output:
grep --regexp='\.jsx*$' log | xargs -I file prettier file --write
List local branches ordered by most recent commit:
git branch --sort=-committerdate # DESC
git branch --sort=committerdate # ASC
A very useful Git command to clean everything untracked:
git clean -xdf
Find commits that add or remove particular string:
git log -S <string> path/to/file