最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

powershell - Why is my git user.name not being used to push? - Stack Overflow

programmeradmin1浏览0评论

I am trying to push to a git repository, and I have two git users. I have switched to user 'growsomedope' and the corresponding email via the git config user.name and git config user.email. However, when I push to growsomedope's repository, it tries to use my other user and thus gives a 403.

PS C:\Users\me\growsomedope.github.io> git config user.name
growsomedope
PS C:\Users\me\growsomedope.github.io> git push
remote: Permission to growsomedope/growsomedope.github.io.git denied to <my-work-username>.
fatal: unable to access '.github.io.git/': The requested URL returned error: 403

git config --list --show-scope includes

global  [email protected]
global  user.name=growsomedope

I'm lost on how to troubleshoot this. Any suggestions?

发布评论

评论列表(0)

  1. 暂无评论