Failed patch changed my Git Bash prompt, how do I revert it?
Asked Answered
G

1

7

I tried to apply a patch using git am <my.patch, but it failed.

Now I'm getting this in 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?

Gwennie answered 28/3, 2014 at 18:46 Comment(0)
O
16

You can abort the process:

git am --abort
Oho answered 28/3, 2014 at 18:48 Comment(2)
Thanks :) It was a clear explanation. Can you also please tell what "am" actually does ?Ul
@TarunNagpal git am takes a patch file (or series of files) and applies them to your current git branchOho

© 2022 - 2024 — McMap. All rights reserved.