GitByBit

Learn Git through practice

GitByBit is a unique course that teaches you Git through practice right in your code editor. You follow on-screen instructions and perform Git commands in your code editor exactly as you would in your daily work. Start from the very basics and bit-by-bit learn everything there is to know about Git.

Choose your editor to get started:
Start in VS Code
Start in Cursor

Course content

Each lesson in the course takes about 5-10 minutes to complete and requires you to perform a series of Git commands in your code editor. This course is tightly integrated with your code editor, so if you make a mistake, the course can detect it and suggest a solution.

This way, you learn by doing with immediate feedback.

This part is designed for beginners who want to learn Git from scratch.

It teaches the essential Git commands and concepts, and lets you practice them in a safe environment. By the end of this course, you will be able to work with Git on your solo projects.

1. Introduction to version control

  • What is version control
  • Why use version control
  • Introduction to Git
  • How Git works

2. Setting up Git

  • Installing Git
  • Command line and terminal
  • The `git` command
  • Configuring Git credentials
  • Configuring line endings treatment
  • Configuring default branch name

3. Getting files into the repository

  • Initializing repository
  • Adding files to the repository
  • Adding and committing changes
  • Checking the status of the repository

4. Resetting unwanted changes

  • Comparing the working tree with the repository
  • Discarding local changes
  • Discarding staged changes
  • Amending the last commit

5. Tagging and branching

  • Referencing commits
  • Tags
  • Branches and branching strategies
  • Creating and switching branches
  • Merging branches

6. History

  • Browsing history
  • Checking the difference between commits
  • Reverting changes made by older commits
  • Resetting branches

7. Remotes and GitHub

  • What is a remote repository
  • Creating a GitHub repository
  • Adding a GitHub repository as a remote
  • Setting up GitHub credentials
  • Pushing and pulling changes from a remote repository
  • Danger of rewriting history on a public repository

Course stats

Size
48 lessons
4-8 hours
Content
19 Git commands
27 concepts, terms, and best practices
55 quizzes

The course is FREE

I am committed to making the best Git learning experience accessible to everyone. That's why the main course content is completely free of charge. You can start learning Git right now without any payment or registration.

There is an optional premium add-on called GitByBit PRO that is focused on Git commands and workflows used in team settings. By purchasing it, you can also support the further development of GitByBit and help me make it even better. Find out about the PRO features.

Your own Git encyclopedia

As you progress through the course, you collect Git commands and concepts, best practices, and expert tips in your own Gitopedia. This is your personal Git encyclopedia that you can refer to at any time. It's a great way to remember Git commands and concepts and to quickly look up things you've forgotten.

It's also a great way to realize how much you've learned over time!

Fun quizzes

Reinforce your knowledge with fun quizzes that provide you with instant feedback and explain the concepts in more detail. You'll be able to test your knowledge, see how well you've learned the material, and learn new things along the way.

Here's a sample quiz from chapter 6, Git history:

It's interactive!
When you revert a commit using git revert, what happens to the commit history?

Become
GitByBit
PRO

Ever had one of those dreams where you're calmly coding at your desk, completely in the zone, until your team lead walks over and you realize you're not wearing any pants?

And yet, this is exactly how it feels when you face a merge conflict or a rejected push for the first time at your sweet new hard-won high-paying dev job.

Unlock the complete GitByBit experience

and build your Git muscles for real-world projects.

Extra content

Get access to a whole new section of over 20 lessons that let you practice advanced Git commands and workflows useful in real-world projects.

Team-focused

Practice Git commands and workflows used in team settings. Build your confidence in branching, merging, resolving conflicts, sending pull requests, and more.

One-time payment
Accepting all major payment methods
30-day money-back guarantee

Any questions or feedback?

Hi, I'm Alexander Shvets, the author of GitByBit and Refactoring.Guru

If you have any questions or feedback about the course, feel free to contact me via email support@gitbybit.com. I am always happy to help you with any issues you might have. I am also open to any suggestions on how to improve the course.

© 2024-2025 GitByBit.All rights reserved.