git am should ignore something in commit message startswith “”?

I have a commit with message like [Hello World]Something.
Then I use git format-patch HEAD~1 to crate a patch.
Content of patch like this:

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

But after I use git am to apply patch,the commit message became “Something” only,[Hello World] seems lost.
How can I keep content in “[]” after apply patch?

  • Multiple ssh keys are not working
  • I accidentally created a local branch named origin/foo. Now what?
  • Git repository setup for a project that has a server and client
  • Flatten old history in Git
  • can't deploy git repository to dokku instance (fatal: {reponame} does not appear to be a git repository)
  • Should I use past or present tense in git commit messages?
  • What's recommended .gitignore for Scala/sbt project in IntelliJ IDEA?
  • Push to Remote URL with TortoiseGit
  • filtered version of git repository
  • Git Cloning a Sub-Directory in a Repository
  • Git Failing to remove with clean
  • git commit comment per file
  • One Solution collect form web for “git am should ignore something in commit message startswith “”?”

    git am -k would prevent it from removing content in [] brackets at the beginning of the subject, but that would also keep the [PATCH 1/7] portion. git format-patch also has a -k option which would prevent it from adding that type of content allowing the subject to be preserved through a git format-patch | git am cycle.

    Git Baby is a git and github fan, let's start git clone.