When I do commits and push from command line, git push that commit to github but that commit it's not from my github user. When I do it from intellij github requires username and password and all commits are linked to my account. How can I configure it ?
Use the ssh/git protocol and you will not to use password any more.
Here is how to set it up:
Generate a new ssh key (or skip this step if you already have a key)
ssh-keygen -t rsa -C "your@email"
Once you have your key set in home/.ssh
directory (or Users/<your user>.ssh
under windows), open it and copy the content
SSH keys
Add ssh key
And you all set to go :-)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.