AI Hints
Home›Git & GitHub Tutorial›What Git Is
Git & GitHub · Lesson 3 of 144

Is Git Installed?

Checking your version.

⏱ 2 min read▶ Video at 2:22🎓 Free
Watch this lesson in the Git & GitHub courseWatch on YouTube ↗Full Git & GitHub course

To use Git, you type commands in a terminal. A terminal is a window where you type instructions, instead of clicking. Don't worry, every command in this course is short, and you'll see exactly what each one prints.

Is Git Installed?
From the video: Is Git Installed?
  • Git lives in the terminal
  • You type short commands
  • You see what each one prints

Opening a terminal

On a Mac, open the app called Terminal. On Windows, install Git for Windows from git dash s c m dot com, and open Git Bash. On Linux, open your terminal app. Git is often already there, and if not, your package manager can install it.

keyvalue
Macopen the Terminal app
Windowsinstall Git, open Git Bash
Linuxopen a terminal
Downloadgit-scm.com

Check the version

Let's check that Git is ready. Type git, a space, and dash dash version. Git answers with its version number. If you see a number like this, Git is installed, and you're ready to go. The exact number on your computer may be a little different, and that's fine.

git
git --version
git version 2.39.5 (Apple Git-154)

Summary

If git dash dash version prints a number, you're ready. Next, we tell Git who you are.

Key takeaways
  • Commands go in a terminal
  • git --version
  • Any recent version is fine
Next up: Telling Git Who You Are — your name and email