Git Quiz (Set 10) Git (Set 10) 1 / 10 What is the purpose of 'git pull --rebase origin'? To fetch changes from the remote repository and merge them into the current branch To fetch changes from the remote repository and reapply local commits on top To undo the last commit To discard local changes 2 / 10 What does 'git reset --hard HEAD' do? It discards local changes and reverts to the last commit It moves the HEAD and the branch pointer to a specific commit It resets the index and the working directory to a specific commit It creates a new branch 3 / 10 What is the purpose of 'git log --pretty=format:\"%h %s\"'? To display a list of available branches To switch between branches To display a short summary of the commit history To display the commit history along with the changes introduced by each commit 4 / 10 What does 'git clean -n' do? To list the available branches To list the untracked files and directories that will be removed To forcefully remove untracked files and directories To discard local changes and revert to the last commit 5 / 10 What is 'git blame' used for? To list 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 6 / 10 What is the purpose of 'git log --graph --all'? To display a visual representation of branching and merging for all branches To display a list of available branches To switch between branches To see the most recent commit 7 / 10 What does 'git stash pop' do? To permanently delete the most recent stash To discard the stash and reapply it To create a new stash To apply the most recent stash and remove it from the stash list 8 / 10 What is the purpose of 'git log --before'? To list the available branches To filter the commit history to show only commits made before a certain date To list the commit history To switch between branches 9 / 10 What does 'git branch -d' do? To display a list of available branches To create a new branch To delete a local branch To switch between branches 10 / 10 What is the purpose of 'git log --since'? To list the available branches To list the commit history To filter the commit history to show only commits made after a certain date To switch between branches Your score isThe average score is 0% 0% Restart quiz