๐Ÿงช GitLab MCQ Quiz Hub

Git MCQ

Choose a topic to test your knowledge and improve your GitLab skills

What is full form of VCS?





โœ… Correct Answer: 4

Git is a __________





โœ… Correct Answer: 1

Which of the following is true about Git? 1. Git does not rely on the central server. 2. Git require network connection only to publish your changes and take the latest changes. 3. Every git checkout is a full backup of the server repository.





โœ… Correct Answer: 4

Which of the following terminology is not related to git?





โœ… Correct Answer: 4

Which of the following is not true about git?





โœ… Correct Answer: 3

Which of the following is example of distributed version control?





โœ… Correct Answer: 4

Who created Git?





โœ… Correct Answer: 2

Which of the following are the stages in which your git file can reside?





โœ… Correct Answer: 4

Git command that lets you get and set configuration variables that control all aspects of how Git looks and operates is





โœ… Correct Answer: 1

Which of the following is correct git command to set your username during git initial setup?





โœ… Correct Answer: 1

Git command to list all the settings Git can find at any point of time is





โœ… Correct Answer: 4

To get the comprehensive manual page (manpage) help for any of the Git commands we can use





โœ… Correct Answer: 4

Git command that helps us initialize git repository for the project (folder) that we intend to track using version control system Git is





โœ… Correct Answer: 2

Which of the following is true related to git init command? 1. A .git folder (sub-directory) is created within your git project (directory) once you run the git init command 2. .git is generally hidden folder.





โœ… Correct Answer: 3

Which of the following is git tool?





โœ… Correct Answer: 4

_____ is a version of the repository that diverges from the main working project.





โœ… Correct Answer: 2

Which of the following command is used to switch between branches in a repository?





โœ… Correct Answer: 1

Which of the following command in git helps create copy of target repository?





โœ… Correct Answer: 3

Which of the following are type of reset facility available in git?





โœ… Correct Answer: 4

Which command can help you to switch branch without committing the current branch?





โœ… Correct Answer: 2

The act of transferring commits from your local repository to a remote repository is known as ___________





โœ… Correct Answer: 1

The reference to the remote repository from where a project was initially cloned is called __________





โœ… Correct Answer: 1

What represents the last commit in the current checkout branch in git?





โœ… Correct Answer: 1

Tags in git can be





โœ… Correct Answer: 4

Which is the correct git command to add files to the repository?





โœ… Correct Answer: 2

Which of the following is the correct git command to commit changes with proper message?





โœ… Correct Answer: 3

Which of the following git command helps to add multiple changes at the same time?





โœ… Correct Answer: 2

What does the below git command indicates? git add *.java





โœ… Correct Answer: 1

Which git command can help to stash a change with a message?





โœ… Correct Answer: 1

Which of the following git command can be used to check the stored stashes?





โœ… Correct Answer: 1

Which of the following option is not valid with git stash command?





โœ… Correct Answer: 4

Which of the following statement is true about git ignore file?





โœ… Correct Answer: 3

Which of the following will help you create a git repository?





โœ… Correct Answer: 3

Which command helps us to see the tracked, untracked files and changes but does not show any commit records?





โœ… Correct Answer: 1

Git log command contains following data





โœ… Correct Answer: 4

git log --oneline command will display





โœ… Correct Answer: 4

git command which displays the files that have been modified is





โœ… Correct Answer: 4