解决 git push 错误信息:The requested URL returned error: 403 Forbidden while accessin

446 阅读1分钟

很显然是url返回错误,需要修改remote url

1. 首先查看当前remote

git remote -v

2. 从https修改为ssh

git remote set-url origin git@github.com:WoFeng806/component-talk-webpack.git

3. 从ssh修改为https

git remote set-url origin https://github.com/WoFeng806/component-talk-webpack.git