【GIT】修改Git远程地址 git config remote.origin.url "https://..."

背景

git pull 拉取代码时报错

fatal: Authentication failed for 'http://oauth2:J***********KY-@10.1.16.22/scoot/scoot.git/'

git config --list
看一下,发现这个 remote.origin.url 需要修改

更正 remote.origin.url

git config remote.origin.url "http://..."

posted @ 2024-03-15 19:41  aaacarrot  阅读(31)  评论(0编辑  收藏  举报