刚刚在 Git 上更改了我的密码并在推送时出现错误

Just changed my password on Git and get an error when pushing

我刚刚在 git 上更改了密码,当我尝试推送

时,终端中出现错误消息

fatal: Authentication failed for 'https://gitlab.digitas.com/flag/promo-hlgen-alt-7.git/'

我想知道我应该如何从终端更新我的密码以避免这个错误。

建议?

我强烈建议您改用 SSH 密钥。不过,我会帮忙的。你只需要 运行 git config --global credential.helper cache

要生成 SSH 密钥,请参阅 here