我遇到了这个奇怪的问题,我用我的凭据 ( my_correct@email.adress)克隆了一个存储库。但我无法推送更改,因为我总是收到此消息:
GitLab: You cannot push commits for 'my_wrong@email.adress' . You can only push commits that were committed with one of your own verified emails.
Run Code Online (Sandbox Code Playgroud)
问题是,当我检查全局和存储库用户时,我发现它是my_correct@email.adress:
全球(以下确认我的正确地址):
git git config --global user.email
git config --global user.name
Run Code Online (Sandbox Code Playgroud)
存储库(下面确认我的正确地址):
git git config user.email
git config user.name
Run Code Online (Sandbox Code Playgroud)
我该怎么办,这个神秘的谜团背后的原因是什么?