Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Your git username is inconsistent with GitLab account name (while Pushing from Local To Remote)

Manish Shivananda Reddy June 12, 2024

Hi Here, 

I am having an issue while pushing the folder/file changes from local machine to GitLab using source tree. Please find the below error.

remote: GitLab: Your git username is inconsistent with GitLab account name

 

I tried checking my username both in GitLab and sourcetree settings. It looked fine.

 

Thanks in Advance.

1 answer

0 votes
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2024

compare them both to the results of this command.

git config -l

This will return your username and email.  Be sure they are the same for GitLab and Sourcetree.

Manish Shivananda Reddy June 12, 2024

@Shawn Doyle - ReleaseTEAM I tried running the command as per your suggestion.

Later, I changed my username by using the below command.

git config --local user.name "[myusername]"

 

Now, I am facing the below error:

remote: GitLab: Your git username is inconsistent with GitLab account name

Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2024

so it wasn't consistent? and then you changed it to be consistent?

Verify what your GitLab username is.

Retrieving your GitLab User ID from your user "Edit Profile" pageThe numeric value listed under "Main Settings" > "User ID" is your user ID. You may also choose to change/update your GitLab user ID from here.

Manish Shivananda Reddy June 12, 2024

@Shawn Doyle - ReleaseTEAM : Yes I changed my username from the command and tried to keep it consistent.

I tried checking my GitLab "User ID" as per your suggestion. It's numeric and non-editable, whereas my username is alphanumeric.

Are you suggesting to change my GitLab "User ID" as per my username? 

Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2024

I would change the userid your Sourcetree is using for GitLab to match what GitLab is showing you.

Manish Shivananda Reddy June 12, 2024

@Shawn Doyle - ReleaseTEAM Still, No Luck! I tried to changed the userid in SourceTree to match with the GitLab.

Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 12, 2024

keep working on making sure all usernames are the same.  

Like Manish Shivananda Reddy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events