Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm default git author

Tags:

git

phpstorm

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?

like image 743
Simon Schneider Avatar asked Oct 16 '14 18:10

Simon Schneider


People also ask

How do I change the author of a commit in Intellij?

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"

How do I commit in PhpStorm?

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 .

How do I change a commit email in Intellij?

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.


2 Answers

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.

like image 70
Simon Schneider Avatar answered Sep 20 '22 08:09

Simon Schneider


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.

like image 43
Andrew C Avatar answered Sep 18 '22 08:09

Andrew C