Git push not working in visual studio 2015

后端 未结 2 1488
無奈伤痛
無奈伤痛 2020-12-20 07:24

My visual studio 2015 works fine with Git connecting to BitBucket. However when connecting to a private Gitlab server, I have a weird problem: - I can clone a repo from the

相关标签:
2条回答
  • 2020-12-20 07:41

    It seems like you've diagnosed the problem yourself (nice sleuthing!) But to answer your two direct questions:

    There is a difference between the tooling built in to Visual Studio and the command line. Visual Studio uses libgit2, which is a reimplementation of git as a linkable library. It does not shell out to the command line at all to perform its work.

    As a result, no, you cannot see the commands, as it is not actually running any.

    0 讨论(0)
  • 2020-12-20 08:02

    On further inspection I found a difference between the GIT command line client and the builtin cliënt in visual studio. The latter uses TLS1.2 for the https session, whereas the command line uses TLS 1.0.

    As it happens out private GITLAB server is situated behind a reverse proxy that has problems with TLS1.2 connections resulting in the weird behaviour (fetch & pull OK, no push).

    0 讨论(0)
提交回复
热议问题