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

后端 未结 5 1934
后悔当初
后悔当初 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:16

    The modified files are not put in the repository until you add and commit them. If you switch back to your topic branch and commit the file, then it won't appear on the master branch.

提交回复
热议问题