Git switch branch ignore files are gone

the gitignore setting ignores database files. It is different to add database, in Branch An and switch to Branch B to add database for database,2 branches. Sometimes switching back and forth will cause all the ignored files originally added in A to disappear, leaving only the directory. This is what"s going on

Git
Feb.23,2022

I have the same problem as you. Has the landlord solved it? how to solve it?

Menu