Removing entry from git authors dropdown / Default author

Is it possible to remove entries from the git authors drowdown (shown during commit)?

Or can I set a default author somewhere?

If not, these would be very useful features to have.

Thanks!
7 comments
You need to set the author in the dialog only if you're committing changes made by someone else. Otherwise, the author and the committer will be the same; they are specified in the system-wide Git configuration (see http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup for more information).
0
Right! The obvious solution... ;-)

Thanks for your help.
0
The entries from the git authors dropdown list is stored in <project_dir>/.idea/workspace.xml

I'm guessing PyCharm first compiles the list by looking at the project's commit history. Normally one shouldn't need to edit the list by hand, but I found myself having imported a project that contained my old email in its commits. Being the sole user of the repo, I re-wrote history in git to update the email, but the old email kept showing up in PyCharm's dropdown list. It has no effect whatsoever (since it is by default hidden under the list and thus overridden by git config user.name and email), but being OCD, I dug into workspace.xml and deleted it :)
1

Yo Patrick! I believe Mr Jemerov has described exactly how the system works and what the use case was for inserting a different author's e-mail address into the Git Commit Changes dialog, as a response to your question.

For me, my use case was making a typo! haha!   :)  

I also want to know if there is a way to remove this entry easily (via the jetbrain's Rubymine interface) without requiring an edit of the application's state or settings files?

Thank you to Juan's helpful suggestion. 

Many thanks to all!

:D

 

0

BTW, Juan's suggestion is a solution. Initially, I thought this was in the app's settings but indeed this is per-project. 

Check all your projects from your current directory:

find . -name .idea | xargs grep -R matchstring {}*

:)

 

0

Now, in Rubymine 2016.3 (RM-163.7743.40) there is an additional entry in the Git Authors list, in the Commit Changes dialog. Why did Rubymine manufacture a Git author be concatenating in the following way on macOS?

"#{username}@#{hostname}.local"  

This string is not in an xml file in the .idea directory. 

How to get rid of this so that I do not need to mouse-around in the Git Author dialog EVERY time?

Command line would be way better than dealing with this Git Author pollution that causes so much repetitive User actions.

Oh, sorry, as this thread is for Python product.

Why does the search cross product categories, to begin with? That's lame and not what a User would expect, unless specifically requesting a broad multi-product search.

Plus, the advanced search looks no different than basic search. I'll assume that this forum's search UI is broken.  ;)

Drifty

 

 

 

0

I think there's a valid use case when having an ability to define author/committer name/email is useful to have in the IDE itself. I'm doing projects for a company I work for but also on work on my own projects. I would like to use different email addresses depending on what project I work on (company email for company projects, but my private email for my own projects). As PyCharm is using global settings it's hard for me to use GIT integration within the IDE for projects that should not use the email address set in the GIT global config. It would be really great if there was a per project setting so I could configure a specific email to use for commits with GIT.

0

Please sign in to leave a comment.