Skip to content

Git Intermediate Quiz

Back to Quiz Home

Leveling up! 🌟 You know the basics—now let's see if you can handle branching, merging, and stashing.

Instructions:

  • These questions cover common daily workflows.
  • Select the correct commands and concepts.
  • Good luck!
#

Which command combines two branches while creating a new commit?

#

Which command temporarily saves your changes without committing them?

#

What is the difference between git fetch and git pull?

#

Which command is used to discard changes in the working directory?

#

Which command modifies the most recent commit?

#

Which command shows the difference between the working directory and the staging area?

#

Which command shows the difference between the staged changes and the last commit?

#

Which command creates a new safe reverse commit to undo changes?

#

How do you force delete a branch that has not been merged?

#

Which command removes untracked files from the working directory?

#

Which command applies a stash and drops it from the stash list?

#

Which command is used to see who changed a specific line in a file?

#

What is a "fast-forward" merge?

#

How do you stop tracking a file but keep it in your local storage?

#

Which command adds a new remote repository?

#

Which command displays a linear graph of commits?

#

What does git reset --soft HEAD~1 do?

#

What is the default behavior of git pull if not configured otherwise?

#

How do you list all tags?

#

Which command helps you switch to a specific commit (entering detached HEAD state)?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📚 Study Guides


📬 Weekly DevOps, Cloud & Gen AI quizzes & guides