# Git Tips and Practice ### Delete all local branches except develop and master > git branch | grep -v "develop" | grep -v "master" | xargs git branch -D ### Revert a single file > git checkout [commit ID] -- path/to/file > git commit -m 'commit message'