An easy way to clean up your local branches that have already been merged to master or develop. First, list them:
git branch --merged | grep -v '\*\|master\|develop'
If all is good and all those branches can be removed, proceed with the following:
git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d
Switch easily between a class and its tests using CMD+SHITF+T
!
You might not like it but this is the most optimum layout for programming https://twitter.com/xssfox/status/1466178398414245891
Questions, remarks about this post?
Reach me on Twitter @florianmski