What is the terminal command to find the version of Git currently installed on my system?
Terminal Command To Find What Version Of Git I Have Installed
gitterminal
gitterminal
What is the terminal command to find the version of Git currently installed on my system?
Best Answer
Yeah, simple -
git --version
(holds true for most applications)If you get
-bash: git: command not found
when you rungit --version
it means git is not installed or it is not on PATH.Make sure git is installed.
/usr/local/git/
If git is installed, then it is mostly likely not on PATH
Find the path where you installed it and do something like this to add it to the path and set in your profile:
echo 'export PATH=/usr/local/git/bin:$PATH' >> ~/.profile
Then make sure you restart terminal before trying to run any git commands