Page 1 of 1

GitLab commits show wrong user

Posted: Mon Aug 05, 2024 12:24 pm
by oxygen-user
Hi,
when I commit files through the Git Staging view, my local (PC) user name is shown as the author of the commit.

However, I would like to make sure the commits are linked to my GitLab user account.

How can I resolve that?

(I couldn't find anything in the Oxygen Author settings.)
When I commit through Visual Studio Code, my commits are made by my GitLab user account.

I use Oxygen Author's Git plugin with a GitLab access token and Visual Studio Code with user name/password.

Best wishes

Re: GitLab commits show wrong user

Posted: Mon Aug 05, 2024 1:10 pm
by sorin_carbunaru
Hi,

To set a repository-specific username/email configuration:
1. From the command line, go to the repository directory.
2. Set your username:

Code: Select all

git config user.name "FIRST_NAME LAST_NAME"
3. Set your email address:

Code: Select all

git config user.email "MY_NAME@example.com"
4. Verify your configuration by displaying your configuration file:

Code: Select all

cat .git/config
If you want to have the same configuration for all your Git local repos, you can use the "--global" flag after "git config".

Regards,
Sorin Carbunaru
Oxygen XML Editor

Re: GitLab commits show wrong user

Posted: Wed Aug 07, 2024 7:38 pm
by oxygen-user
Excellent, thanks!