I have a single repo where each branch specifies different approaches to the same problem:
$ git branch
approach1
approach2
approach3
Now for each of these approaches, I have several auxiliary files, but the auxiliary files are specific to each branch.
So my question is: Is it possible to have these files not be tracked, but move with the branch when I git checkout
and move to a different branch?
This is what I would like to happen when I move to different branches:
$ git checkout approach1
$ ls
notrack_test1.cpio.gz notrack_test2.tar notrack_test2-logging.img
tracked1/ tracked2.tmp
$ git checkout approach2
$ ls
notrack_check1.cpio.gz notrack_check2.cpio.zip
notrack_check2-no_cam.img tracked1.img tracked_source/
Is this possible? The main reason I need to do this is because I have a large amount of auxiliary files per branch that should not be committed and not tracked.