git push时用户名和密码是什么? [英] what is the username and password when do git push?

查看:1186
本文介绍了git push时用户名和密码是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了新的@ outlook.com帐户,仅用于使用InteliJ Idea,Git(独立,不在IDE内)和TFS通过网络浏览器进行版本控制。

I created new @outlook.com account just for version control using InteliJ Idea, Git (standalone, not inside IDE) and TFS via web browser.

当我这样做时; git push -u origin --all

when I do git push -u origin --all

我得到致命:身份验证失败,我的凭据似乎无法正常工作。

i get fatal: Authentication failed and my credentials does not seem to work.

任何帮助都得到了认可。 

Any help isappreciated. 

推荐答案

嗨ffabijanic,

Hi ffabijanic,

感谢您发布此处。

>>身份验证失败,我的凭据似乎无效。

>>Authentication failed and my credentials does not seem to work.

这是错误信息,请在此处发布原始错误信息。

Is this the error message, please post the original error message here.

首先,我想一想您使用Visual Studio Team Service而非本地TFS,因为本地TFS不使用Outlook帐户登录。

First, I think that you're using Visual Studio Team Service not on-premises TFS, because on-premises TFS doesn't use outlook account to login.

其次,运行"git remote -v";检查它是否是"原产地"。对应于您的VSTS存储库。

Second, run "git remote -v" to check if it the "origin" correspond to your VSTS repository.

第三,远程是否正确,检查您是否有权访问VSTS存储库。尝试从浏览器登录。然后在VSTS中检查您的帐户,并将这些权限设置为"允许"。

Thirdly, is the remote is correct, check if you have the permission to access the VSTS repository. Try if you could login in it from browser. Then check your account in VSTS, it these permissions set to "Allow".

祝你好运


这篇关于git push时用户名和密码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆