With git, how to minimize pain when switching between branches with differing .gitignores?
I am in a position where I switch branches in a single repo regularly, working on my own projects, and reviewing collaborator’s code by running it. Often new code will generate intermediary files that shouldn’t be tracked by git. A collaborator will have added these files to the .gitignore
on their branch, to be reviewed as part of a pull request.
With git, how to minimize pain when switching between branches with differing .gitignores?
I am in a position where I switch branches in a single repo regularly, working on my own projects, and reviewing collaborator’s code by running it. Often new code will generate intermediary files that shouldn’t be tracked by git. A collaborator will have added these files to the .gitignore
on their branch, to be reviewed as part of a pull request.