how to get version of github

C++
git --version
Source

Also in C++: