简体   繁体   English

失败的补丁改变了我的Git Bash提示,我该如何还原呢?

[英]Failed patch changed my Git Bash prompt, how do I revert it?

I tried to apply a patch using git am <my.patch , but it failed. 我尝试使用git am <my.patch应用补丁,但失败了。

Now I'm getting this in Git Bash: 现在我在Git Bash中得到这个:

sashoalm@SASHOALM-PC /c/Workspace/MyProject (master|AM 1/1)

My prompt used to show: 我的提示用于显示:

sashoalm@SASHOALM-PC /c/Workspace/MyProject (master)

So something has been "left over" from the unsuccessful patch, how do I completely cancel it, and return to the old prompt? 因此,从失败的补丁中“遗留”了一些东西,如何完全取消它,并返回到旧的提示?

您可以中止该过程:

git am --abort

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM