Lesson overview · Free interview practice

Git

Learn version control and collaboration.

Topics in the full lesson
  • Introduction to Version Control
  • Getting Started with Git
  • Git Branching and Workflows
  • Collaboration with Git
  • Code Reviews and Pull Requests
  • Advanced Git Techniques
  • Collaboration Platforms
  • Best Practices
  • Exercises

Practice Problems

Work through a question before revealing its explanation. These questions and answers are free; Premium adds the full lesson walkthrough, examples and implementation detail.

Completion marks record your own progress, not an automatically checked result. The task type does not determine whether it is optional.

TheoryEasy

Pull Requests: The Modern Code Review Vehicle

Question

What is a pull request, and what makes a good one?

Take a moment to think about this before revealing the answer

Explain your reasoning or try an implementation before comparing answers.

TheoryEasy

Commit Conventions: Conventional Commits + Atomic History

Question

What are the canonical commit-message conventions, and what makes a good commit?

Take a moment to think about this before revealing the answer

Explain your reasoning or try an implementation before comparing answers.

TheoryMedium

Git Merge vs Rebase: Same Effect, Different History

Question

What is the difference between git merge and git rebase, and when does each fit?

Take a moment to think about this before revealing the answer

Explain your reasoning or try an implementation before comparing answers.

TheoryMedium

Reverting a Pushed Commit: revert, reset, and reflog

Question

How do you undo a commit that has been pushed to a shared remote, and what are the safe vs unsafe options?

Take a moment to think about this before revealing the answer

Explain your reasoning or try an implementation before comparing answers.

TheoryMedium

Resolving Merge Conflicts: The Canonical Workflow

Question

How do you resolve a merge conflict, and what strategies prevent them?

Take a moment to think about this before revealing the answer

Explain your reasoning or try an implementation before comparing answers.

Explore the full Git material

Premium includes the complete lessons and implementation references. Free practice questions remain available without a subscription.

All course tracks & premium content
From basics to advanced masterclasses
Built for JS/TS developers like you
Real-world tips & common pitfalls
Upgrade to Premium