GIT MCQ Quiz

  1. Which Command is used to show limited number of commits?
  2. Which command defines the author email to be used for all commits by the current user.
  3. ____________ command is useful for getting a high-level overview of the project history.
  4. ___________________ removes untracked files from your working directory.
  5. Which command creates an empty Git repository in the specified directory?
  6. Command to download all the objects and references from a specified repository
  7. Git command to compare two specified branches
  8. _____________ command renames the current branch to <branch>
  9. Which Git command displays the patch representing each commit.
  10. Which of the following command line environment is used for interacting with Git ?
GIT MCQ

Take GIT Quiz To test your Knowledge 

Below are few GIT MCQ tests that check your basic knowledge of GIT. This GIT Test contains around 20 questions of multiple choice with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking view answer link.

Also, Read Best GIT interview questions.

  • git fetch <remote>
  • git log -n <limit>
  • git config <limit>
  • git status
View Answer
  • git clean -f <path>
  • git config --global user.email <email>
  • git merge --no-ff <email>
  • git email--amend
View Answer
  • git log --oneline
  • git reset --hard
  • git log --author="<pattern>"
  • git rebase <base>
View Answer
  • git commit
  • git clean -f <path>
  • git clean
  • git reset
View Answer
  • git reset <file>
  • git log <since>..<until>
  • git init <directory>
  • git init --bare <directory>
View Answer
  • git config --list
  • git help <command>
  • git fetch <remote>
  • git log -n <limit>
View Answer
  • git diff <first-branch>...<second-branch>
  • git merge <fetched-remote-name> <branch-name>
  • git blame -L <start>,<end> <filename>
  • git push <remote> --tags
View Answer
  • git remote rm <name>
  • git branch -m <branch>
  • git branch -D <branch> (CAPS)
  • git rebase <base>
View Answer
  • git branch
  • git remote -v
  • git log -p
  • git log
View Answer
  • Git Bash
  • GitHub
  • Git Boot
  • Git Lab
View Answer