Search code examples
gitgithubphpstormcommit-message

Custom commit messages for every different file PhpStorm + GitHub


That's my first question on StackOverflow, so every advice will be very appreciated.

I'm working with PhpStorm as IDE, and my partners and I are we using GitHub as a Version Control System.

Every time you make a commit change (like a push) Git allows you to add a comment on the files that you change.

And we arrive to the problem

As you can see on this image I have changed 3 files (1 php class file, and 2 twig templates):

img

The problem is that I want to add a commit message for every different file, but the commit message box only allows you to comment every file with the same comment.

The only way to do that is committing every file separately, but I want a faster way.


Solution

  • Git does not allow creating different commit messages for each file in a commit. See e.g. this thread or this

    So you need to commit each file separately if you wat a different message.