My commits author is changed automatically to root in linux #91777
-
Hello everyone, I am new to linux as well, and Git as well, so I don't understand why git changes the name of the author of the commits I am making to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Git usually uses a hierarchy of configurations. Check if there is a local configuration that overrides your global settings
If there's a local config, you can change them by doing:
If you are using SSH for Git operations, make sure that your SSH key is correctly associated with your Git account. If the SSH key is not recognized, Git may default to the "root" user. 👍🏼 |
Beta Was this translation helpful? Give feedback.
Hello! 👋
If Git is showing your commits as authored by "root," it might be due to permissions or the way you're initializing your Git repository.
Make sure you have the correct permissions and are in the right directory when making commits. Also, verify your local repository's config with :
git config --local user.name
to ensure it's set correctly for the specific project.