Git MCQ
Git MCQ
Git MCQ
com
GIT MCQ Quiz
A. git fetch
B. git log -n
C. git config
D. git status
Q2. Which command defines the author email to be used for all commits by the current
user.
A. git clean -f
B. git config --global user.email
C. git merge --no-ff
D. git email--amend
Q3. ____________ command is useful for getting a high-level overview of the project
history.
Q5. Which command creates an empty Git repository in the specified directory?
A. git reset
B. git log ..
C. git init
D. git init --bare
Q6. Command to download all the objects and references from a specified repository
A. git remote rm
B. git branch -m
C. git branch -D (CAPS)
D. git rebase
Q9. Which Git command displays the patch representing each commit.
A. git branch
B. git remote -v
C. git log -p
D. git log
Q10. Which of the following command line environment is used for interacting with Git ?
A. Git Bash
B. GitHub
C. Git Boot
D. Git Lab
Q11. In Git, if you want to make your local repository reflect changes that have been
made in a remote (tracked) repository, you should run the pull command
A. True
B. False
Q12. If you want to make radical changes to your team’s project and don’t want to impact
the rest of the team, you should implement your changes in -
A. the root
B. a tag
C. the trunk
D. None of the above
Q14. Which one of the following is not part of the data structure of a Git repository?
A. Branch pointer
B. Body element
C. Commit object
D. Head pointer
Q15. Which of these Git client commands creates a copy of the repository and a working
directory in the client’s workspace.
A. checkout
B. clone
C. import
D. update
A. Decentralized
B. Centralized
A. 2nd
B. 3rd
C. 4th
D. 5th
A. speed
B. data integrity
C. support for distributed non-linear workflows
D. All of the above
A. C
B. HTML
C. PHP
D. C++
Q20. Git command .................... used to give tags to the specified commit.