github 切换账号

510 阅读1分钟
  • github切换账号后替换添加ssh还是无法push代码
    fatal: unable to access 'https://github.com/'username01'/xxxx.git/': The requested URL returned error: 403
    解决方案 :
    第一种解决方案:将远程仓库连接有https 改为ssh
    git remote  -v
    git remote rm origin
    git remote add origin git@github.com:tnwrwqdbythyck/MusicPlayer.git
    第二种解决方案(Mac用户):删除钥匙串的下github应用程序密码