linuxlab.io
Tutorials▾
  • Linux & networking
    File system, processes, TCP/IP, BGP and OSPF
    →
  • Terraform & IaC
    HCL, state, plan/apply on a LocalStack sandbox
    →
  • Git & GitHub
    Object model, plumbing, branching, GitHub Actions
    →
All tutorials →
PricingAboutSign inCreate account
/
Intro
Lessons
Footer
linuxlab-TutorialsPricingAboutPrivacy & cookies
Copyright © 2026 LinuxLab. All rights reserved.
linuxlab.io
Tutorials▾
  • Linux & networking
    File system, processes, TCP/IP, BGP and OSPF
    →
  • Terraform & IaC
    HCL, state, plan/apply on a LocalStack sandbox
    →
  • Git & GitHub
    Object model, plumbing, branching, GitHub Actions
    →
All tutorials →
PricingAboutSign inCreate account
/
  • Introduction
  • Chapters
  • How it works
  • Lessons
  • Knowledge base
  • Interview prep
Interview prep

$ /courses/git/interview

Interview prep.
Git, to the point.

Not a Top-30 with a list of answers. Each question is a card: what they want to hear, the usual traps, a follow-up, and links into the knowledge base for depth. Right now 47 questions across 8 clusters.

Clusters

Clusters

Each cluster is an independent topic. Open the one you're weakest on, or go in order.

  • /internals

    7 questions

    Objects, SHA, packfile, working tree

    Questions about the Git object model: the four object types, SHA as the key, how history sits on disk, and why branches in Git are cheap. This is the foundation for every other cluster. Without it, talking about rebase, reflog, and filter-repo is pointless.

    junior
    1
    middle
    4
    senior
    2
    35 minopen→
  • /branching-merging

    6 questions

    Branches, merge, rebase, cherry-pick

    Comparing merge and rebase, fast-forward vs no-ff vs squash, when and why you reach for cherry-pick, what interactive rebase does. A standard block for interviews on any role where Git is more than "push to main".

    junior
    1
    middle
    3
    senior
    2
    35 minopen→
  • /remote-collab

    6 questions

    Remote repositories and teamwork

    What push/pull/fetch do, what a tracking branch is, how origin differs from upstream in fork models, and when a force-push is acceptable. The baseline block for any team whose code travels beyond a single laptop.

    junior
    2
    middle
    3
    senior
    1
    30 minopen→
  • /workflow-pr

    6 questions

    Workflow, PR, code review

    Atomic commits, conventional commits, semver, what separates a good PR from a bad one, how to run code review, CODEOWNERS and branch protection. On Backend and DevOps interviews teams check how well a candidate lives inside a team process, not just inside a local `git push`.

    junior
    1
    middle
    3
    senior
    2
    30 minopen→
  • /recovery-archaeology

    6 questions

    History recovery and archaeology

    Reflog as a time machine, bisect for finding the commit that broke things, blame with its limits, rev-parse as a universal ref resolver, and cat-file for reading objects by hand. This block immediately shows who has "worked through incidents by hand" versus who "read the textbook."

    junior
    1
    middle
    3
    senior
    2
    30 minopen→
  • /rewriting-history

    5 questions

    Rewriting history

    amend, interactive rebase, git filter-repo, force-push. When it is safe to rewrite history, how to avoid breaking your teammates' copies, and why filter-branch is no longer used. Senior questions: what to do once the rewrite has already happened and the team is suffering.

    junior
    1
    middle
    1
    senior
    3
    30 minopen→
  • /security-secrets

    5 questions

    Security and secrets

    GPG/SSH signing, secret scanning, ssh keys, gitignore and why it does not fix a secret that already leaked. This block comes up often on DevOps/SRE/Platform interviews, where Git is part of the supply chain.

    junior
    1
    middle
    3
    senior
    1
    25 minopen→
  • /troubleshooting

    6 questions

    Scenarios: lost a commit, force-push, detached HEAD

    Scenario questions are the most valuable ones in an interview. Not "what is reflog," but "I wiped my own commits with reset --hard, what do you do first." These questions separate the candidate who read the textbook from the one who put out fires in a team repository. Every scenario here is real.

    junior
    1
    middle
    2
    senior
    3
    35 minopen→
Footer
linuxlab-
Copyright © 2026 LinuxLab. All rights reserved.
Tutorials
Pricing
About
Privacy & cookies