15

I don't know what I have "touch" but now I have in my prompt this:

(master|AM/REBASE)

what should I do?

0

2 Answers 2

41

What you "touched" is the git am command.

Use the following to exit the am mode.

git am --abort

Do not use git rebase --abort since you will lose all your local changes that are not stashed. It's easy to forget what git rebase --abort really does and lose local changes when you did not intend to get into a rebase state. (I did)

1
  • 2
    Also git rebase --abort gives erorred for me error: could not read '.git/rebase-apply/head-name': No such file or directory Commented Jun 3, 2020 at 8:56
3

To solve the problem you should use git rebase --quit

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.