Here is the situation.
I have some git repositorys. Say the repository A and B that are both hosted on gitlab.com
I already did
git config --global user.name "MyCorrectUserName"
and I see, that it worked:
git config --global --list
user.name=MyCorrectUserName
user.email=my@gitlabmail.com
credential.helper=/usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring
In repository A I do some commit and so on and then do a git push origin master it asks for my password (so it knows my username. GREAT!)
In repository B I do the same and it asks for my username. Well.
in repository A/.git/config I see
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = https://MyCorrectUserName@gitlab.com/MyCorrectUserName/A.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
in repository B/.git/config I see
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = https://gitlab.com/MyCorrectUserName/B
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[user]
    name = MyCorrectUserName
I tried to
Edit:
I tried to change the B repository's config as it is in A (username@gitlab.com). It did not work.
How can I get git to remember my username everywhere?
 
     
    