Skip to main content
CloudCareerLabs Logo CloudCareerLabs
Version Control

Git Prep.

Master merge conflict resolution, interactive rebasing, selective cherry-picking, history rewriting, git bisect debugging, and branching strategies.

AR
Written by Ashmit N. Rai • Co-Founder & DevOps Platform Engineer DevOps specialist and platform automation architect. Expert in version control workflows.

Interactive Flashcards

# 1
Unreviewed

What is the difference between git merge and git rebase?

# 2
Unreviewed

What is the difference between git fetch and git pull?

# 3
Unreviewed

What is git cherry-pick and when is it useful?

# 4
Unreviewed

How do you resolve a Git conflict during a merge?

# 5
Unreviewed

What does git reset --hard do compared to git reset --soft?

# 6
Unreviewed

How do pull requests (PR) and merge requests (MR) work?

# 7
Unreviewed

What is a branching strategy? Name a few.

# 8
Unreviewed

How do you configure git user credentials globally on a new machine?

# 9
Unreviewed

What is a .gitignore file and how does it work?

# 10
Unreviewed

What is git stash and when should you use it?

# 11
Unreviewed

What is the difference between git reset and git revert?

# 12
Unreviewed

How do you find which commit introduced a bug in Git?

Scenario Challenges

Select a scenario below to test your troubleshooting workflow.

Topic: Resolving a Merge Conflict

You pull changes from main and get a conflict in index.html. Resolve the conflict and complete the merge.

Run git status to identify index.html as the conflicting file. Click to select
Open index.html, remove the <<<, ===, >>> markers, and select the correct merged code lines. Click to select
Run git add index.html followed by git commit to finish the merge. Click to select
Selected Sequence

No steps selected yet. Click options above in sequence.