Git Introduction

What version control is and why Git matters.

✍️ 2 exercises in this lesson

Git is a free, distributed version control system created by Linus Torvalds in 2005. It records snapshots of your project over time.

With Git you can

  • See exactly what changed, when and by whom.
  • Go back to any earlier version.
  • Work on features in separate branches without breaking the main code.
  • Collaborate with others through services like GitHub, GitLab and Bitbucket.

Key Takeaways: Git Introduction

Mastering Git Introduction helps you write clean and reliable Git code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.

Git Introduction Code Example

Git
git --version
Output
git version 2.46.0.windows.1
Run this example on your own computer. The "Get Started" lesson shows how to set it up.

Git Introduction Practice Exercises

Check what you learned in “Git Introduction”.

/ 2 solved
Fill in the blank

Check which version of Git is installed.

git 
✓ Correct! Not quite. Try again.
Multiple choice

What kind of tool is Git?

✓ Correct! Not quite. Try again.
to save your exercise progress.
Finished this lesson?
Mark it complete to track your progress.

Stuck on something?

Ask the community in the CodesInTech forum.

Need a developer?

Learning on your own is great — and when you need professional help, our team builds custom software, websites and mobile apps for clients worldwide.

Explore Our Services