your local changes would be overwritten by merge. commit stash or revert them to proceed. view them

简介: error log:   your local changes would be overwritten by merge. commit stash or revert them to proceed.

error log:

 

your local changes would be overwritten by merge. commit stash or revert them to proceed. view them

  

 

You can't merge with local modifications. Git protects you from losing potentially important changes. You have three options. One is to commit the change using

git commit -m "My message"

  

The second is to stash it. stashing acts as a stack, where you can push changes, and you pop them in reverse order.

To stash type:

git stash

  

Do the merge, and than pull the stash:

git stash pop

  

The third options is to discard the local changes using git reset --hard.

 

 

http://stackoverflow.com/questions/15745045/how-do-i-resolve-git-saying-commit-your-changes-or-stash-them-before-you-can-me

 

目录
相关文章
|
Java Maven 数据安全/隐私保护
maven发布jar包到私服以及从私服下载jar包的操作
maven发布jar包到私服以及从私服下载jar包的操作
888 0
|
Web App开发 缓存 Java
idea和谷歌浏览器占用内存过高的处理方法
idea和谷歌浏览器占用内存过高的处理方法
6778 0
idea和谷歌浏览器占用内存过高的处理方法
|
存储 XML SQL
数据库建模之EAV模型
数据库建模之EAV模型
606 1
|
编解码 开发工具 Python
Intellij IDEA、 Pycharm 格式化换行,竖线修改 最大 分隔 线
Intellij IDEA、 Pycharm 格式化换行,竖线修改 最大 分隔 线
188 1
|
存储 SQL 分布式计算
Hive 中有多少种数据类型?
【8月更文挑战第12天】
1317 4
|
算法 Linux
Linux copy时排除某文件/目录
Linux copy时排除某文件/目录
493 0
|
监控 关系型数据库 数据库
PostgreSQL和greenplum的copy命令如何使用?
【6月更文挑战第5天】PostgreSQL和greenplum的copy命令如何使用?
459 2
|
IDE Go 开发工具
【GO基础】2. IDEA配置Go语言开发环境
【GO基础】2. IDEA配置Go语言开发环境
1151 2
|
缓存 监控 JavaScript
Vue.js中的计算属性 computed 与监听属性 watch深入探索
Vue.js中的计算属性 computed 与监听属性 watch深入探索
503 0
|
负载均衡 网络协议 算法
网卡设置 多网卡的7种bond模式原理
网卡设置 多网卡的7种bond模式原理
370 0