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

本文共 701 字,大约阅读时间需要 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

 

转载地址:http://tdlml.baihongyu.com/

你可能感兴趣的文章
前端教程之插件和类库封装
查看>>
《Android艺术开发探索》学习笔记之View的工作原理
查看>>
[译] Story 中 Type Mode 在 iOS 和 Android 上的实现
查看>>
全球银行网站成黑客主攻目标 阿里云提供安全防御应急方案
查看>>
Flutter完整项目-笑话Flutter(原创)
查看>>
数据结构与算法-表达式二叉树
查看>>
JavaSE基础:字符串
查看>>
iOS开发 __func__的使用
查看>>
iOS开发 使用fui(Find Unused Imports)扫描工程中不用的类
查看>>
Android组件化专题-路由动态注入跳转参数以及获取其他模块的fragment
查看>>
JavaScript中的执行机制
查看>>
WWDC2017-Customized Loading in WKWebView
查看>>
今天我才学会iOS的MVP写法
查看>>
Vue.js项目中管理每个页面的头部标签的方法
查看>>
function-表达式(内含自执行函数)
查看>>
2.字符串
查看>>
用Python从Unicode转换到中文并输出到文件
查看>>
阿里云弹性web托管使用教程
查看>>
Python爬虫之旅之Selenium库的使用
查看>>
『中级篇』Docker的收费模式(53)
查看>>