码迷,mamicode.com
首页 > 其他好文 > 详细

Git常见问题

时间:2016-05-19 19:19:49      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:

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

        protected/config/main.php

Please, commit your changes or stash them before you can merge

解决办法:

如果希望用代码库中的文件完全覆盖本地工作版本. 方法如下:

git reset —hard (git reset针对版本)

git pull

Git常见问题

标签:

原文地址:http://www.cnblogs.com/loritin/p/5509633.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!