首页 > 其他 > 详细

学习git中出现的问题

时间:2020-06-04 18:19:52      阅读:38      评论:0      收藏:0      [点我收藏+]

使用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"

学习git中出现的问题

原文:https://www.cnblogs.com/WeirJin-cloud/p/13038753.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!