Git Quiz (Set 5) Git (Set 5) 1 / 10 What is the purpose of 'git revert --no-commit'? To create a new branch To discard local changes and revert to the last commit To undo a specific commit without automatically creating a new commit To switch between branches 2 / 10 What is the purpose of 'git log --decorate'? To display a list of available branches To list the commit history To display the commit history along with references such as branches and tags To switch between branches 3 / 10 What does 'git clean' do? It removes a remote repository It deletes all branches except the current one It discards local changes and reverts to the last commit It removes untracked files and directories from the working directory 4 / 10 What is 'cherry-picking' in Git? A way to select and apply specific commits from one branch to another A way to create a new branch A way to revert to the last commit A way to switch between branches 5 / 10 What is the purpose of 'git bisect'? To create a new branch To find the difference between two commits To perform a binary search for the commit that introduced a bug To switch between branches 6 / 10 What is the purpose of 'git reflog'? To display a list of available branches To list the commit history To display the reference log, which shows the history of HEAD and branch positions To switch between branches 7 / 10 What is a 'revert' commit in Git? A commit that introduces new features A commit that discards local changes A commit that is not yet ready to be merged A commit that undoes the changes made by a previous commit 8 / 10 What does 'git stash pop' do? It permanently deletes the stash It discards the stash and reverts to the previous commit It applies the most recent stash and removes it from the stash list It creates a new stash 9 / 10 What is 'rebasing' in Git? A way to merge two branches without creating a merge commit A way to create a new branch A way to discard local changes and revert to the last commit A way to switch between branches 10 / 10 What is the purpose of 'git blame'? To display a list of available branches To see the names of developers who contributed to each file To revert to the last commit To create a new branch Your score isThe average score is 0% 0% Restart quiz