Git & Version Control Phrasal Verbs
5 exercises — the phrasal verbs developers use every day when talking about Git: checking out, pulling, pushing, branching, and reverting.
Git phrasal verb cluster
- check out a branch — switch to it (
git checkout/git switch) - pull in changes — fetch & merge from remote (
git pull) - push up to remote — send commits to origin (
git push) - branch off from main — create a new branch (
git checkout -b) - merge in a PR — incorporate a branch (
git merge) - revert back — undo commit(s) safely (
git revert)
0 / 5 completed
1 / 5
A developer says: "I need to _____ the feature branch before I can start working on the bug fix."
Which phrase completes the sentence correctly?
Which phrase completes the sentence correctly?
Check out means to switch your working directory to a specific branch or commit:
git checkout feature/auth (classic) or git switch feature/auth (modern Git 2.23+). Explanation of the others: "Check in" is not a standard Git term (it comes from older version control systems like SVN/TFS — where you "check in" files to the repository). In a Git context, we "commit and push". "Check through" is not a technical term in version control. "Check off" means to mark something as done on a list — unrelated to Git. Real-world usage: "Let me check out the main branch and pull the latest." / "I checked out a new branch from develop." / "She checked out the tag v2.3.1 to investigate the regression."