Error report after solving git push origin master

After Solving git push origin master , there is an error:

remote: Permission to `USer-A/project.git` denied to `User-B`.
fatal: unable to access `https://github.com/User-A/project.git/`: The requested URL returned error: 403

Environment: git version 2.24.3 (apple git-128)

The user.name I set in Git is the same as the name of GitHub

Solution:

    1. into your own project
cd [project_path]
      1. Edit URL in. Git/config
vim .git/config

You will see the following code block

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
        precomposeunicode = true
[user]
        name = user-A
        email = [email protected]
[remote "origin"]
        url = https://github.com/User-A/project.git
        fetch = +refs/heads/*:refs/remotes/origin/*

[UNK]
url = https://github.com/User-A/project.git
[email protected]/User-A/project.git

then [UNK] git push origin master,[UNK];

Password for 'https://[email protected]':

Just enter the password


Read More: