简体   繁体   English

如何识别 GitHub 中使用的 Git 版本?

[英]How to identify which Git Version used in GitHub?

We make use of GitHub as enterprise version control system - 'github.org.com" (my organization server URL).我们使用 GitHub 作为企业版本控制系统 - “github.org.com”(我的组织服务器 URL)。

How to find the Git version which is being used by GitHub along with GitHub version?如何查找 GitHub 正在使用的 Git 版本以及 GitHub 版本?

Even the Meta API would not expose the Git version your GitHub Enterprise server operates on.即使是Meta API也不会公开您的 GitHub Enterprise 服务器运行的 Git 版本。

This is usually done as a best practice, to avoid exposing potential security issues linked to the underlying tool (here ' git ') used by a server (here 'GitHub Enterprise')这通常作为最佳实践来完成,以避免暴露服务器(此处为“GitHub Enterprise”)使用的底层工具(此处为“ git ”)相关联的潜在安全问题

See for example " What is the best way to explain (a non-technical person) the risk of leaking version information? ".例如,请参阅“解释(非技术人员)泄漏版本信息风险的最佳方法是什么? ”。

通常,您可以通过在 git bash "git --version" 上编写此命令来查看 git 版本,但对于 git-app-version,您可以查看“ https://github.com/csanquer/git-app-version

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

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