A lot of times when jumping across branches on your Git repository, you’ll come across…
When working on a major feature it is common to have are a number of new test files associated with it. It can be a pain to manually specify each test file when testing to ensure that all the aspects of the new feature are working correctly. To eliminate the manual labour I use the…
Slowly my local git repository had accumulated close to 50 branches. I felt like removing every other branch expect master .
master
git branch | grep -v master | xargs git branch -D
Sometimes I have found large static files commit-ed into the git repository and not been removed out of the git DB when deleted. This bloats the repository.
git rev-list --objects --all \| git cat-file…
git rev-list --objects --all \| git cat-file