using git to manage multiple projects encountered a problem with missing project files:
two branches established using git: one is a branch and the other is b branch.
in order to make projects independent of each other on the git branch, an empty branch of temp is established, and the new projects are all branches based on this branch. Prevent branch interference.
encountered such a problem when switching branches. In branch a, that is, project a, you now need to switch to branch b, that is, project b. After switching, it is found that the untracked file node_modules, which is ignored in branch a, is missing. I would like to ask how to deal with it so as not to lose the neglected files. First, make sure that each project is independent of each other, one branch at a time, how can you ensure that untracked files will not be lost when switching projects?