错误信息如下:
git push -u origin master
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://git.nowcoder.com/7543696/MyFirstSSM.git/'
对于这种错误信息,首先应该设置git的密码,点击Git账号设置


如果没有设置过密码,则需要先设置密码,设置成功后
在git的终端中输入
git config --system --unset credential.helper
或者
git config –global http.emptyAuth true
我使用了第二个命令成功的,再次输入
git push -u origin master
输入名字和并在弹出框中输入刚刚设置的密码即可上传成功。
Username for 'https://git.nowcoder.com':
网友评论