Android Studio git check in author name

39,125

Solution 1

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.

Solution 2

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

Solution 3

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.

Share:
39,125
Codevalley
Author by

Codevalley

Someone who's been programming since the DOS days, majorly non-web development. Then forayed into the web a little and into designing. Now, exploring the mobile app world. Working as a Architect for Mobile App development.

Updated on August 08, 2020

Comments

  • Codevalley
    Codevalley over 3 years

    I use Android Studio with Bitbucket(over Git) for my repositories. I generally get the author name on the revision history as my name (not my Bitbucket username). When I installed Android Studio in a new computer and pushed for the first time, it showed a dialog asking for Git Username and email. Now all my check ins have author as the username. I am not sure how to change the setting, how can I configure the VCS author settings in Android Studio?

  • Iliya Mashin
    Iliya Mashin about 3 years
    I should add. "<your user name>". In quotes