GitLab commits show wrong user

Having trouble installing Oxygen? Got a bug to report? Post it all here.
oxygen-user
Posts: 9
Joined: Wed Jan 24, 2024 4:36 pm

GitLab commits show wrong user

Post 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
sorin_carbunaru
Posts: 405
Joined: Mon May 09, 2016 9:37 am

Re: GitLab commits show wrong user

Post 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
oxygen-user
Posts: 9
Joined: Wed Jan 24, 2024 4:36 pm

Re: GitLab commits show wrong user

Post by oxygen-user »

Excellent, thanks!
Post Reply