远程仓库一直正常使用,近期在服务器拉远程仓库代码的时候报错
error: The requested URL returned error: 401 Unauthorized while accessing https://gitee.com/imxgr/console.git/info/refs
fatal: HTTP request failed
网上找了一些提供的解决办法,最终使用更换远程地址这个办法解决,记录一下
git remote set-url origin https://xuguorui@gitee.com/imxgr/console.git