简体   繁体   English

TFS上的Visual Studio 2017推送错误(使用GIT联机运行Visual Studio)

[英]Visual Studio 2017 push error on TFS (visual studio online with GIT)

I move to VS17 from VS15 when i try to push my changes to TFS Online I get this error 当我尝试将更改推送到TFS Online时,我从VS15移至VS17,我收到此错误

Error encountered while pushing to the remote repository: Git failed with a fatal error. 推送到远程存储库时遇到错误:Git失败并出现致命错误。

If I close and move back to VS15 I reopen the same repository I'm able to push it. 如果关闭并移回VS15,则可以重新打开相同的存储库。 Another strange situation is that on Team Explorer window my solution is not show reather then VS15 and I need to open manualy. 另一个奇怪的情况是,在“团队资源管理器”窗口上,我的解决方案没有显示VS15,而是需要手动打开。

This works for me with VS2017 RTM 这适用于VS2017 RTM

  1. Uninstall any current version of Git for Windows 卸载Windows的任何当前版本的Git
  2. Install Git using Web Platform Installer 使用Web Platform Installer安装Git
  3. Open Command Prompt via Visual Studio 通过Visual Studio打开命令提示符
  4. Executing set HOMEPATH in the command line gave this output: 在命令行中执行set HOMEPATH给出以下输出:

Update: Some people still facing this issue even after the VS2017 little update, but Microsoft is aware of it and currently working on it https://twitter.com/VisualStudio/status/841803379231887360 更新:即使在VS2017稍作更新后,有些人仍然面临此问题,但是Microsoft意识到了这一点,目前正在对此进行https://twitter.com/VisualStudio/status/841803379231887360

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM