How to check your installed version of Git

In order to check your version of Git software installed on the Operating System just type git --version in your console.

How to check your git version: macOS/Linux

  1. Open Terminal application,
  2. Type: $ git --version,
  3. You should see the installed git version details on console:
    git version 2.6.1

How to check your git version: Windows

  1. If you have installed tool like gitbash, open git Bash (or Git CMD - though deprecated)
  2. Type git --version
  3. You should be able to see your installed git version like:
    $ git --version
    git version

⚠️ Note: Make sure you are not running the command on CMD or else you will see this below error!

C:\Users\c2c>git --version
'git' is not recognized as an internal or external command,
operable program or batch file.
Check your installed git version
Check your installed git version

Have Questions? Post them here!

Recent Posts:

Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.