🤔🤔🤔学习git中出现的问题
使用git中出现的一些问题
错误信息提示
error: Your local changes to the following files would be overwritten by checkout:
.idea/workspace.xml
......
Please, commit your changes or stash them before you can switch branches.
解决方法
//第一种方式 存到暂存区
git add.
git stash
//取出的时候使用
git stash pop
//第二种方式 发起一个commit 存到提交历史
git add.
git commit -m "commit message"

浙公网安备 33010602011771号