码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2015-08-12 18:49:27      阅读:257      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!