remote: Permission to user_name/Code.git denied to other_user_name. fatal: unable to access 'https://github.com/user_name/Code.git/': The requested URL returned error: 403

Error msg:

$ git push
remote: Permission to xxx/Code.git denied to xxxxxx.
fatal: unable to access 'https://github.com/xxx/Code.git/': The requested URL returned error: 403

  

原因:

  账号切换, git安全机制导致

解决:

  git remote set-url origin git@github.com:用户名/仓库名.git

上一篇:【js】【图片显示】js控制html页面显示图片方式


下一篇:【分享送书】NGUI全面实践教程V3.8.2 活动开始了!!