git-am:tldr:881f6
The command "git am --abort" is used to abort the current "git am" operation.
When applying patches using the "git am" command, Git splits the process into multiple steps, such as applying each patch and committing the changes. However, if an error occurs during this process, you may want to stop the operation and revert any changes that were already applied. This is where "git am --abort" comes into play.
By running the command "git am --abort", Git will stop the current "git am" operation and reset the repository to its state before the patch application began. It discards any patches that were already applied and moves any unapplied patches to a mailbox file. This allows you to start over or proceed with an alternative approach.
In summary, "git am --abort" is used to cancel the current patch application process and revert any changes made during it.