git: I got "am/rebase" in my prompt, what to do?
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)
To solve the problem you should use git rebase --quit