Git MCQs with answers Page - 3

Here, you will find a collection of MCQ questions on Git. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 831.35K Points
Coach

Q. What is a merge conflict?

  • (A) Git error
  • (B) Conflict between branches
  • (C) Network issue
  • (D) Repository corruption

A

Admin • 831.35K Points
Coach

Q. Which command is used to resolve merge conflicts?

  • (A) git fix
  • (B) Manual editing + git commit
  • (C) git resolve
  • (D) git conflict

A

Admin • 831.35K Points
Coach

Q. Which command shows remote repositories?

  • (A) git remote
  • (B) git show remote
  • (C) git repo
  • (D) git server

A

Admin • 831.35K Points
Coach

Q. What is git stash used for?

  • (A) Delete changes
  • (B) Save changes temporarily
  • (C) Commit changes
  • (D) Push changes

A

Admin • 831.35K Points
Coach

Q. Which command applies stashed changes?

  • (A) git stash apply
  • (B) git stash pop
  • (C) git stash use
  • (D) Both A and B

A

Admin • 831.35K Points
Coach

Q. What is a fork in Git?

  • (A) Branch creation
  • (B) Copy of repository on another account
  • (C) Commit rollback
  • (D) Merge process

A

Admin • 831.35K Points
Coach

Q. Which command is used to tag a commit?

  • (A) git mark
  • (B) git label
  • (C) git tag
  • (D) git point

A

Admin • 831.35K Points
Coach

Q. Which Git command shows detailed information about a commit?

  • (A) git info
  • (B) git log
  • (C) git show
  • (D) git detail

A

Admin • 831.35K Points
Coach

Q. Which Git command stages all modified and deleted files at once?

  • (A) git add .
  • (B) git add -u
  • (C) git stage
  • (D) git commit -a

A

Admin • 831.35K Points
Coach

Q. Which command commits all tracked files without staging?

  • (A) git commit
  • (B) git commit -a
  • (C) git commit -m
  • (D) git save

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ