如何在git bash中更改我的凭据?
我需要更改主机的用户名和密码。 当我使用$git config-global credential.helper default时,它应该在下次使用repo时询问新用户和密码,但它不起作用如何在git bash中更改我的凭据?,git,bash,credentials,Git,Bash,Credentials,我需要更改主机的用户名和密码。 当我使用$git config-global credential.helper default时,它应该在下次使用repo时询问新用户和密码,但它不起作用 是否要更改我的用户名和密码?请确保对repo使用ssh url而不是https,然后尝试运行: git config-global user.name myusername git config-global user.email myemail我在这里遇到了同样的问题,我在git文档中找到了解决方案。写下以
是否要更改我的用户名和密码?请确保对repo使用ssh url而不是https,然后尝试运行: git config-global user.name myusername
git config-global user.email myemail我在这里遇到了同样的问题,我在git文档中找到了解决方案。写下以下几行,一切都会好起来,为你的下一个commhrigit做准备
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>
这里是指向文档的链接:请更清楚地定义它不起作用。