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 2.21.0.windows.1

⚠️ 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!
Advertisements
Try Out Code2care Dev Tools:

Advertisements



Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Advertisements


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, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency