博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git merge 报错:error: Your local changes to the following files would be overwritten by m
阅读量:2120 次
发布时间:2019-04-30

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

error log:

error: Your local changes to the following files would be overwritten by merge:	app/Http/Controllers/User/UserIndexController.phpPlease commit your changes or stash them before you merge.Aborting

  

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"

  

  • 2.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://lykrf.baihongyu.com/

你可能感兴趣的文章
Leetcode C++《热题 Hot 100-49》399.除法求值
查看>>
Leetcode C++《热题 Hot 100-51》152. 乘积最大子序列
查看>>
[Kick Start 2020] Round A 1.Allocation
查看>>
Leetcode C++ 《第181场周赛-1》 5364. 按既定顺序创建目标数组
查看>>
Leetcode C++ 《第181场周赛-2》 1390. 四因数
查看>>
阿里云《云原生》公开课笔记 第一章 云原生启蒙
查看>>
阿里云《云原生》公开课笔记 第二章 容器基本概念
查看>>
阿里云《云原生》公开课笔记 第三章 kubernetes核心概念
查看>>
阿里云《云原生》公开课笔记 第四章 理解Pod和容器设计模式
查看>>
阿里云《云原生》公开课笔记 第五章 应用编排与管理
查看>>
阿里云《云原生》公开课笔记 第六章 应用编排与管理:Deployment
查看>>
阿里云《云原生》公开课笔记 第七章 应用编排与管理:Job和DaemonSet
查看>>
阿里云《云原生》公开课笔记 第八章 应用配置管理
查看>>
阿里云《云原生》公开课笔记 第九章 应用存储和持久化数据卷:核心知识
查看>>
linux系统 阿里云源
查看>>
国内外helm源记录
查看>>
牛客网题目1:最大数
查看>>
散落人间知识点记录one
查看>>
Leetcode C++ 随手刷 547.朋友圈
查看>>
手抄笔记:深入理解linux内核-1
查看>>