Should git am ignore something in the message sending message "[]"?

I have a message with a message like [Hello World]Something.
Then I use git format-patch HEAD ~ 1 to create the patch.
Patch content like this:

 Subject: [PATCH 1/7] [Hello World] Something. 

But after I used git am to apply the patch, the commit message became "Something", [Hello World] seems lost.
How to save the contents to "[]" after applying the patch?

+6
source share
1 answer

git am -k prevent the deletion of the contents in brackets [] at the beginning of the object, but it will also retain the [PATCH 1/7] . git format-patch also has the -k option, which will prevent it from adding this type of content, allowing you to save the object in a loop git format-patch | git am git format-patch | git am .

+9
source

All Articles