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.
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.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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" page. The 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would change the userid your Sourcetree is using for GitLab to match what GitLab is showing you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Shawn Doyle - ReleaseTEAM Still, No Luck! I tried to changed the userid in SourceTree to match with the GitLab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
keep working on making sure all usernames are the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.