博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
your local changes would be overwritten by merge. commit stash or revert them to proceed. view them
阅读量:4445 次
发布时间:2019-06-07

本文共 753 字,大约阅读时间需要 2 分钟。

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

 

转载于:https://www.cnblogs.com/spring87/p/4860428.html

你可能感兴趣的文章
java 发展简史
查看>>
Js 数组排序函数sort()
查看>>
软件工程firstblood
查看>>
2014
查看>>
通过nodeJs的anywhere搭建本地服务器环境
查看>>
code[vs] 3500 快速幂入门
查看>>
架设API的时候会出现的问题
查看>>
深圳scala-meetup-20180902(1)- Monadic 编程风格
查看>>
Akka-CQRS(10)- gRPC on SSL/TLS 安全连接
查看>>
几何 模板
查看>>
谷歌浏览器无法看视频问题
查看>>
公用插件开发-Day2
查看>>
安装rancher以及使用rancher倒入kubernetes集群和添加及管理集群
查看>>
前端基础入门
查看>>
人生新的一页已经翻开
查看>>
第一次迭代心得
查看>>
获取一年的第一天和最后一天
查看>>
Python 的装饰器
查看>>
django实现支付宝支付
查看>>
synchronized同步方法和同步代码块的区别
查看>>