Modified files in a git branch are spilling over into another branch

后端 未结 5 1870
后悔当初
后悔当初 2020-11-22 09:01

I am working on a git repository with a master branch and another topic branch. I have switched to topic branch and modified a file. Now, if I switched to master branch that

5条回答
  •  温柔的废话
    2020-11-22 09:21

    This is the default behaviour of git.

    You can use -f flag to checkout to do "clean checkout" if you like.

提交回复
热议问题