Git Quiz (Set 9) Git (Set 9) 1 / 10 What does 'git diff --cached' do? To display the differences between the staging area and the last commit To display the commit history To display the differences between the working directory and the last commit To switch between branches 2 / 10 What is the purpose of 'git stash'? To discard local changes and revert to the last commit To apply the most recent stash and remove it from the stash list To temporarily save local changes without committing them To create a new stash 3 / 10 What is a 'tag' in Git? A branch that is automatically merged with the main branch A way to mark a specific point in the commit history as significant A remote repository used for backups A separate repository within a repository 4 / 10 What does 'git log --oneline' display? A list of the most recent commits along with their hash and message A list of available branches A list of remote repositories A list of the differences between commits 5 / 10 What is a 'pull request' in Git? A request to push changes to a remote repository A request to merge changes from a remote repository into a local branch A request to discard local changes A request to create a new branch 6 / 10 What is the purpose of 'git blame'? To display the commit history of a file To see the names of developers who contributed to each line of a file To undo the last commit To switch between branches 7 / 10 What does 'git log --abbrev-commit' do? To display a list of available branches To list the commit history To switch between branches To display a shorter version of the commit hash 8 / 10 What is a 'submodule' in Git? A separate repository used for backups A module that only has a single file A repository that contains another repository as a subdirectory A repository with only one branch 9 / 10 What is a 'merge commit' in Git? A commit that only involves two branches A commit that undoes the changes made by a previous commit A commit that discards local changes and reverts to the last commit A commit that represents the result of merging two or more branches 10 / 10 What is the purpose of 'git log --name-status'? To list the available branches To display a list of recent commits To display the list of changed files along with their status To switch between branches Your score isThe average score is 0% 0% Restart quiz