git update - index - skip - worktree & lt; file>
Ignore the file, git status view, display status is clean, and then switch branches, prompt ignore files need to be submitted,
Didn't find a solution, using the command
git update - index - no - skip - worktree & lt; file>
Cancel to ignore, and then submit to branch switch,
Search for a moment as if someone had a similar problem, but may be from stackoverflow translated, can't see,
Why ignore also suggests need to submit?