git pull err
来源:互联网 发布:上海医保报销软件 编辑:程序博客网 时间:2024/06/18 15:24
如果系统中有一些配置文件在服务器上做了配置修改,然后后续开发又新添加一些配置项的时候,
在发布这个配置文件的时候,会发生代码冲突:
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 stashgit pullgit stash pop
然后可以使用Git diff -w +文件名 来确认代码自动合并的情况.
反过来,如果希望用代码库中的文件完全覆盖本地工作版本. 方法如下:
git reset --hardgit pull
阅读全文
0 0
- git pull err
- git pull
- git pull
- git pull
- git pull
- git pull
- git pull
- git pull
- git pull
- git pull
- git pull
- git push & git pull
- git pull git push
- Git fetch、git pull
- Git git pull error
- git pull 和 git pull --rebase
- git pull和git pull -- rebase
- git pull 使用法
- POJ 2528 Mayor's posters( 线段树+离散化)
- shiro redis session共享
- 链表求和 & 二进制求和
- 写一篇优质原创博客不容易
- Ubuntu环境下安装python3.5保留系统python2.7
- git pull err
- 微信小程序上传一或多张图片
- 手机没有4G信号
- docker(17):使用docker构建nginx+phpfpm环境2
- runtime总结
- 从上往下打印二叉树
- Java数据结构与算法
- sckit-learn
- spring boot拦截器HandlerInterceptor详解