git cherry-pick表示存在本地更改,但git状态没有任何说明 [英] git cherry-pick says local changes exist, but git status says nothing

查看:3809
本文介绍了git cherry-pick表示存在本地更改,但git状态没有任何说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 $ git cherry-pick 5de83068 
错误:对以下文件的本地更改将被合并覆盖:
Components / ApplicationEnums / Application.cs
请提交您的在合并之前更改或隐藏它们。
正在取消

$ git status
#关于分支大师
没有提交(工作目录清理)

UPDATE 对不起,我切换到另一个分支,并再次切换回来,并且无法再生成它:($ / b>

解决方案

来自樱桃挑选的补丁无法根据应用更改的接缝进行调整,请执行--no-commit以查看所发生的情况。 p>

$ git cherry-pick 5de83068
error: Your local changes to the following files would be overwritten by merge:
        Components/ApplicationEnums/Application.cs
Please, commit your changes or stash them before you can merge.
Aborting

$ git status
# On branch master
nothing to commit (working directory clean)

UPDATE Sorry, I switched to another branch, and switched back again, and can't reproduce this anymore :(

解决方案

The patch from the cherry-pick does not align in terms of the seams of where the changes would be applied. Do a --no-commit to see what happens.

这篇关于git cherry-pick表示存在本地更改,但git状态没有任何说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆