我是新手,刚开始学习使用git和github.
我认为我已经了解了基本的操作,但是现在有点困惑。由于我的电脑出了问题,我换了一台电脑并从github上克隆了一个仓库。然后我想要切换分支并输入了 "checkout branch" 命令,这个命令在之前的电脑上我也做过。
但是我遇到了如下错误提示:"Your local changes to the following files would be overwritten by checkout:"
接着列出了很多文件名。
提示中还提到:"Please, commit your changes or stash them before you can switch branches."
那么,为什么在克隆完之后这些文件就被更改了呢?