Android Studio git check in author name
Like Martin mentioned above, running
git config user.name <your user name>
git config user.email <your email>
with or without
--global
did not solve this problem for me either. Where he has multiple authors that he wants to prune I couldn't get a single author on that list to be accepted, even though everything worked fine from the command line. In Android Studio I would always see
Error:No existing author found with 'username'
with no option to enter a git username or email. While not necessarily a fix, I found a way around my problem by manually doing the initial commit on the command line. After that I was able to commit from within Android Studio without any problems.
I don't think there is any UI for changing this in Android Studio, but you can change this from the command line:
git config user.name <your user name>
git config user.email <your email>
Add --global if you want this to apply to all Git repositories on your machine.
As stated in answer above and link below we can achieve commit results but we need to use --global
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup