Finding out the version of git on remote server -
I'm looking git commands on your local machine that went to learn the version running on the remote Jiaiti Can i Server? If this is also possible.
Modern Jiaiti server (start) their version information capabilities protocol talks although it is accurate that nobody git commands that you can run locally, you can query the git server for informational purposes only and will provide the latest version number.
You can use the web client to request:
& lt; Store URL & gt; / Info / refs service = upload pack from git
and check for first line for agent =
report.
For example, against the CodePlex:
% curl https://git01.codeplex.com/gittf/info/refs??service= more packed Git 000000bd43569b9f6f29136b6544809eacd2417a308f9341 HEAD \ 0multi_ack thin pack side band side band -64 k ofs- Delta shallow progress tag multi_ack_detailed not agents = Git / 1.8.4.msysgit.0
Which indicates that CodePlex Windows 1.8.4 ( Git / 1.8.4.msysgit.0
)
is Git use against or GitHub.
<>% curls https://github.com/libgit2/libgit2.git/info/refs\?service=git-upload-pack 000000f83f8d005a82b39c504220d65b6a6aa696c3b1a9c4 former \ 0multi_ack thin pack side band side band -64 k ofs- Delta shallow no progress tag Multi_ack_detailed Symref = hEAD: the refs / heads / master agent = Git / 2: 2.1.1 ~ peff- out bare reflogs -fetch-616-gc016f98 ... referees ...
indicating that GitHub is using a custom Git version: Git / 2: 2.1.1 ~ peff- bare -reflogs-fetch-616-gc016f98
.
Comments
Post a Comment