来司搬砖发现怎么git pull代码怎么炸了呢:
remote: Invalid username or password.
fatal: Authentication failed for 'https://xxxx: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@github.mmm.com/xxxxxx.git/'
才想起来之前更新过token令牌,查一下原来的配置信息:
remote.origin.url=https://xxxx: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@github.mmm.com/xxxxxx.git/
还是原来token拼成的源地址,G.需要更新一手。
// 删除原有地址
git remote rm origin
// 修改为新的地址
git remote add origin NewGitURL
结束。拉好代码,可以搬砖ing~
本文参考链接:https://www.cnblogs.com/zonglonglong/p/14389037.html