I have IntelliJ 14 with GIT integrated. git push
command shows the Author as unknown
. How do I set the following two parameters in my IntelliJ IDE?
git config --global user.name "Sam Smith"
git config --global user.email sam@example.com
I have IntelliJ 14 with GIT integrated. git push
command shows the Author as unknown
. How do I set the following two parameters in my IntelliJ IDE?
git config --global user.name "Sam Smith"
git config --global user.email sam@example.com
You can set the username and email for Intellij 14 with GIT integration as follows. This worked for me.
Go to your project where git is initialized.
Then enable the hidden folders and find ".git
" and go inside the folder.
Find the file called "config
" and add below code and save.
[user]
name = username
email = username@domaim.com
Name Surname <Email>
Assuming that you have installed git from git-scm.com.
For Linux or Mac OS use terminal.
For Windows environment: Use git bash (comes together with git installation) or use Powershell.
Run:
git config --global user.name "Sam Smith"
git config --global user.email sam@example.com
Tricky part is: You have to commit at least one time from terminal.
git add my_awesome_file
git commit -m "My commit message"
VIOLA! Now your author is shown in IntelliJ commit panel.
(Note: If you work with different repositories using different emails don't use global configuration)
If I were you, I would just copy and paste those two lines in your command prompt; that will set the appropriate values, including for the IDE.
If you really want to set it via the IDE for some reason, I would follow the instructions here.
Below is worked for me
root:~/git_workspace/dummyproject$ git config --global user.name "Krunal.Chauhan" root:~/git_workspace/dummyproject$ git config --global user.email krunal@abcd.com
set username and email, then I have committed code and pushed it to git.
so changes have been reflected.