chenjunyingdeMacBook-Pro:crm_dm1 chenjunying$ git push origin master
remote: Permission to chenjy522/crm_dm1.git denied to chenjy512.
fatal: unable to access ‘https://github.com/chenjy522/crm_dm1.git/’: The requested URL returned error: 403
解决方式:修改config配置文件—修改url
修改前的版本:-------
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = https://github.com/chenjy522/crm_dm1.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
name = xxxx
email = xxxx@126.com
------------------------修改后的版本:-------
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = https://chenjy522@github.com/chenjy522/crm_dm1.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
name = cjy_xx
email = xxxx@126.com