Git is deleting an ignored file when i switch branches

前端 未结 5 864
你的背包
你的背包 2020-11-27 18:16

I have one branch (let\'s call it B) that ignores a certain file, which isn\'t ignored in some other branches (eg branch A). When i switch from branch B to branch

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 18:51

    Ignoring files in git does not mean they are out of revisioning. You can have a file checked in and managed in git and have it ignored in .gitignore.

提交回复
热议问题