🧪 GitLab MCQ Quiz Hub

Git MCQ

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

1. What is full form of VCS?




2. Git is a __________




3. 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.




4. Which of the following terminology is not related to git?




5. Which of the following is not true about git?




6. Which of the following is example of distributed version control?




7. Who created Git?




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




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




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




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




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




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




14. 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.




15. Which of the following is git tool?




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




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




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




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




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




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




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




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




24. Tags in git can be




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




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




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




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




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




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




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




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




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




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




35. Git log command contains following data




36. git log --oneline command will display




37. git command which displays the files that have been modified is