gitphpstormphpstorm-2018.1

Autofill the git commit author field in PhpStorm


Is there a way to set the value of the author field shown in the image, so you don't have to type it in every time?

I checked my git config file but my credentials are already entered correctly there.

The autocomplete knows multiple users, maybe this is causing the problem. Unfortunately, I don't know if and / or how you can reset it...

PhpStorm's commit window with empty author field.


Solution

  • This is a misunderstanding (because of a confusing UI - this field probably needs to be renamed to smth like Commit as different user): the Author field should only be filled if the author of the changeset is different from the committer (i.e. if you are not the commit author). If you leave this field empty, code will be committed using the author configured in your git config.

    Please vote for IDEA-178170 and linked tickets to get the current UI changed