Why are unstaged changes still present after checking out a different branch?

后端 未结 2 567
予麋鹿
予麋鹿 2021-01-05 02:00

I\'m observing something that is not consistent with what I know about the git checkout command. While on a branch other than master, I make some m

2条回答
  •  感动是毒
    2021-01-05 02:42

    Until a change is staged (using git add), it just exists in the working directory - it is not tracked by git, and therefore will exist in any branch you checkout.

提交回复
热议问题