Git MCQs with answers Page - 11

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 • 828.03K Points
Coach

Q. Which Git command verifies a signed tag?

  • (A) git tag --verify
  • (B) git verify-tag
  • (C) git tag -v
  • (D) git tag check

A

Admin • 828.03K Points
Coach

Q. What does git ls-files show?

  • (A) All repository files
  • (B) Tracked files in index
  • (C) Untracked files
  • (D) Ignored files

A

Admin • 828.03K Points
Coach

Q. Which command updates remote-tracking branches?

  • (A) git push
  • (B) git fetch
  • (C) git pull
  • (D) git update

A

Admin • 828.03K Points
Coach

Q. Which command changes the upstream branch?

  • (A) git branch --set-upstream-to
  • (B) git remote set
  • (C) git push -u
  • (D) Both A and C

A

Admin • 828.03K Points
Coach

Q. Which Git command helps find large files?

  • (A) git bigfiles
  • (B) git verify-pack
  • (C) git fsck
  • (D) git size

A

Admin • 828.03K Points
Coach

Q. What does git fsck check?

  • (A) File syntax
  • (B) Repository integrity
  • (C) Branch conflicts
  • (D) Remote connection

A

Admin • 828.03K Points
Coach

Q. Which command reuses a previous commit message?

  • (A) git commit --reuse-message
  • (B) git commit -C
  • (C) git commit -c
  • (D) Both A and B

A

Admin • 828.03K Points
Coach

Q. Which Git feature allows custom shortcuts for commands?

  • (A) Hooks
  • (B) Aliases
  • (C) Submodules
  • (D) Worktrees

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