Medium Git Challenges - Intermediate Practice

Ready for more complex scenarios? Practice multi-step workflows, branch management, conflict resolution, and collaboration patterns used in professional development teams.

10 medium challenges
#scenario-2-5

Managing .gitignore Patterns

🎯Mixed

Learn to properly configure .gitignore to exclude files you don't want to track, and how to handle files that were accidentally committed.

MediumDaily Operations4 Questionsgitignoreconfiguration+1 more
#scenario-3-2

Feature Branch Workflow

💻Terminal

The standard workflow for developing a new feature is to create a dedicated branch. This keeps the 'main' branch clean and allows for code reviews before merging.

MediumBranching & Collaborationbranchingworkflow+1 more
#scenario-3-3

Keep Your Branch Updated with Rebase

🎯Mixed

Your feature branch was created yesterday. Today, main has several new commits. Use rebase to build your feature on top of the latest main, keeping a clean linear history.

MediumBranching & Collaboration4 Questionsrebaseworkflow+1 more
#scenario-3-4

Pull Remote Updates with Rebase

🎯Mixed

You have local commits on main, but a teammate pushed new commits to origin/main. Use git pull --rebase to avoid unnecessary merge commits.

MediumBranching & Collaboration4 Questionspullrebase+2 more
#scenario-3-5

Resolving Merge Conflicts

💻Terminal

You've been working on a feature, and in the meantime, someone else changed the same line of code on the 'main' branch. It's time to merge, and you need to resolve the conflict.

MediumBranching & Collaborationconflictsmerging+1 more
#scenario-4-1

Fork Workflow and Creating Pull Requests

🎯Mixed

You want to contribute to an open-source project. Learn the fork workflow: create your own copy, make changes, and submit a pull request.

MediumPull Requests & Code Review4 Questionsforkpull-request+2 more
#scenario-4-2

Squash Commits Before Pull Request

🎯Mixed

Your feature branch has messy commit history: 'WIP', 'fix typo', 'actually fix it'. Before submitting a PR, clean it up by squashing commits into one logical change.

MediumPull Requests & Code Review4 Questionssquashrebase+2 more
#scenario-4-3

Code Review Workflow and Amending Commits

💻Terminal

After pushing your feature branch, a reviewer requests changes. Learn to amend your commit and update the pull request.

MediumPull Requests & Code Reviewcode-reviewamend+1 more
#scenario-5-1

Reset Explained: Soft, Mixed, and Hard

🎯Mixed

You've made a commit you want to undo locally. git reset is the tool, but it has three modes: soft, mixed, and hard. Understanding them is key to avoiding data loss.

MediumFixing Mistakes4 Questionsresetundo+1 more
#scenario-5-2

Reverting Pushed Commits Safely

💻Terminal

You've pushed a commit to a shared branch that introduced a bug. You can't use git reset because it rewrites history. The safe way is with git revert.

MediumFixing Mistakesrevertundo+1 more