Your local changes to the following files would be overwritten by checkout

当我们切换项目分支时,有时候会提示: 当前分支有未跟踪的文件,checkout 命令会覆盖它们,请缓存( stash )或者提交( commit ) 解决办法 所以我们可以先commit,然后再切换分支即可 原因 git 的本地版本管理有三个部分 名称 说明 工作区(Working Directory) 我们直接编辑的文件部分 暂存区(Staged Snapshot) 文件执行 git add .
相关文章
相关标签/搜索