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 ``: The requested URL returned error: 403

Environment: git version 2.24.3 (apple git-128)

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


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

You will see the following code block

        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
        precomposeunicode = true
        name = user-A
        email = [email protected]
[remote "origin"]
        url =
        fetch = +refs/heads/*:refs/remotes/origin/*

url =
[email protected]/User-A/project.git

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

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

Just enter the password

Read More: