Whenever I commit through the SSH, it has the author of the commit as "root". How do I change it to my actual Github username so it links to that account?
It's an Ubuntu machine if that helps.
Whenever I commit through the SSH, it has the author of the commit as "root". How do I change it to my actual Github username so it links to that account?
It's an Ubuntu machine if that helps.
Create a .gitconfig
file with these fields in the root of the repository:
[user]
email = john.doe@mail.com
name = John Doe
This tutorial covers setting your email in your git configuration. Note that GitHub links commits based on the email(s) connected to your account.
In short: git config --global user.email "me@here.com"
The configuration node for your name is user.name
.