Improve branch switching with a .gitignore