PHPStorm on Win + git
Hi!
We would like to try git inside PHPStorm IDE.
We got fatal error "fatal: No existing author found with 'alexey_baranov'" during first commit.
What does this mean?
WinXP SP3
PHPStorm 1.0.2
Cygwin git
Thanks!
Please sign in to leave a comment.
Hi Alexey,
1. Have you configured your git username and email?
To check this execute these commands from your project folder:
git config --get user.name
git config --get user.email
To set your username and email execute
git config --global user.email your.name@domain
git config --global user.name "Your Name"
(you may omit "--global" if you wish to set up these settings only for this Git project)
2. If everything is OK with your username and email, try to commit from console. Does it succeed?
Everything goes well until you fill "Author" field (screenshot 1).
Attachment(s):
1.TIF
Please note that the "Author" field is used when you want to explicitly specify the author of the commit who is different from you (for example, somebody else made the change but was committing from your computer).
In that case you should follow the rules written in git documentation:
http://www.kernel.org/pub/software/scm/git/docs/git-commit.html
--author=<author>
Override the commit author. Specify an explicit author using the standard A U Thor format. Otherwise is assumed to be a pattern and is used to search for an existing commit by that author (i.e. rev-list --all -i --author=); the commit author is then copied from the first such commit found.
So if you want to use 'Author' you should specify the author in the required format or be sure that the author can be found in repository by the given pattern.
Of course commit dialog behavior could be friendlier in that case, we already have a request for it, feel free to vote: http://youtrack.jetbrains.net/issue/IDEA-55256