简体   繁体   English

使用Eclipse和eGit-初始设置后,如何确定正在使用哪种协议(即是否使用ssh)?

[英]Using Eclipse and eGit - after the initial setup, how do I tell what protocol is being used, i.e. ssh or not?

We have a small team of developers working on a project that works with a Git repository hosted by TFS that is already owned by the customer. 我们有一个小组的开发人员,负责一个与TFS托管的Git存储库一起工作的项目,该存储库已由客户拥有。 We are using Eclipse and eGit. 我们正在使用Eclipse和eGit。 How can I tell what protocol is being used when we do pull and push? 当我们进行推入和推入操作时,如何得知正在使用哪种协议? I can see the URL but i'm not sure how to tell what the protocol is.. I'm interested in knowing if SSH is involved. 我可以看到URL,但是我不确定如何知道该协议是什么。.我有兴趣知道是否涉及SSH。

git remote get-url --all origin

will to display information about URLs of the remote. 将显示有关遥控器URL的信息。 If they start with https then http is used. 如果它们以https开头,则使用http。 If they start with user@server.domain then, most likely, ssh is used. 如果它们以user@server.domain开头,则很可能使用ssh。

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

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