In PhpStorm I am having difficulty setting the default git author in the project settings:
I used the "Action finder" and searched through the settings, but I have not found this option.
Does anyone know where I can change this value, so I don't have to change it on every commit?
To set a name for every Git repository on your machine, use $ git config --global user.name "John Smith" To set a name for a single repository, use $ git config user.name "John Smith"
Starting from PhpStorm version 2020.1, you can switch to a non-modal commit interface: select the Use non-modal commit interface option (enabled by default for new installations) on the Version Control | Commit page of the IDE settings Ctrl+Alt+S .
Edit a commit messageRight-click the commit whose message you want to edit in the Log tab of the Git tool window Alt+9 and select Edit Commit Message from the context menu, or press F2 . In the dialog that opens, enter a new commit message and click OK.
Thanks to the information given by Andrew I was able to find a solution:
Go to your project folder \ .git \ config and add the lines below:
[user]
name = Your Name
email = [email protected]
I hope this was helpful for other PhpStorm and git users.
No clue on PhpStorm, but you should be able to do git config user.name "Your Name"
and git config user.email "Your email"
from a command line inside the repo and perhaps achieve the results you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With