I want to set the default author
on the Version Control
window in Intellij. I always need to type again and again when I'm commiting new code.
Is there any way to set that value by default without needing to edit in every commit I make?
I've already set git user
and email
on my ~/.gitconfig
[user]
email = [email protected]
name = waghcwb
Go to Settings -> Editor -> Live Templates , click the Plus Icon Button (on the right). In the "Abbreviation" field, enter the string that should activate the template (e.g. @a ), and in the "Template Text" area enter the string to complete (e.g. @author - My Name ).
In the Settings/Preferences dialog Ctrl+Alt+S , select Appearance and Behavior | System Settings | Passwords on the left. Select how you want IntelliJ IDEA to process passwords for Git remote repositories: In native Keychain: select this option to use native Keychain to store your passwords.
VCS - > Git - > Remotes Popup will open with all repository URLs configured, you can simply edit them or add new one. Save this answer.
If you have set your user.name
and user.email
in your ~/.gitconfig
you can just leave the Author field empty and Git will look in ~/.gitconfig
.
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 = [email protected]
This will set default git author in Intellij permanently
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With