Given I have a master branch and a other branch. In the other branch are files I don t want to commit (e.g. log files) so I ignored them in .gitignore.
When I switch to the master branch, these ignored files stay but they belong only to the other branch.
Is there a way to attach some ignored files to a specific branch (without committing them)?