首页 > Windows开发 > 详细

"Your local changes to the following files would be overwritten by merge" on git

时间:2015-08-12 18:47:31      阅读:349      评论:0      收藏:0      [点我收藏+]

运行: git merge --ff origin/master

得到错误信息:

error: Your local changes to the following files would be overwritten by merge:

  dir/file1

  dir/file2

  dir/file3

 

解决办法先运行以下命令迁出远程文件:

  git checkout HEAD^ dir/

 

"Your local changes to the following files would be overwritten by merge" on git

原文:http://www.cnblogs.com/Jim-william/p/4725091.html

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