Git deletes files in working directory after switching branch

时间:2015-06-30 19:26:05

标签: git

I have a problem with 1 file in a git repository.
The file exists in [develop] and also in [feature/x]

After I switch from [develop] to [feature/x] the file is deleted from the working folder and when I do a git status it is marked for delete.

When I do git reset --hard the file is back.

The problem only occurs with a specific file and I can't figure out what the cause is.

0 个答案:

没有答案