git checkout carries unstaged files to the new branch

后端 未结 3 569
感动是毒
感动是毒 2021-01-24 17:24

I have been trying to set-up repository with gitlab CE, as a part of the set-up created a repo and been playing around with it, when I encountered, that after I make some modifi

3条回答
  •  迷失自我
    2021-01-24 18:01

    That's a feature, not a bug, and has been that way ever since, as far as I know. If git thinks that it can safely carry along your local modifications, it does so.

    If you want to get rid of them, git reset --hard.

提交回复
热议问题