Git Quiz (Set 2) Git (Set 2) 1 / 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 2 / 10 What does 'git rebase' do? It merges two branches It discards local changes and reverts to the last commit It combines changes from one branch onto another It pushes changes to a remote repository 3 / 10 What is the 'HEAD' in Git? A command used to switch between branches A label that points to the most recent commit in the current branch A remote repository A type of data storage format 4 / 10 What is the purpose of 'git revert'? To undo a specific commit while creating a new commit To create a new branch To permanently delete a branch To switch between branches 5 / 10 What is the purpose of 'git fetch'? To copy a remote repository to your local machine To send local changes to a remote repository To retrieve changes from a remote repository without merging To undo the last commit 6 / 10 What is the purpose of 'git remote'? To create a new branch To display the commit history To manage connections to remote repositories To switch between branches 7 / 10 What does 'git log' display? A list of available branches The commit history of the repository The contents of the working directory The changes staged for commit 8 / 10 What is the purpose of 'git stash'? To permanently delete a branch To revert to the last commit To temporarily save changes that are not ready to be committed To fetch changes from a remote repository 9 / 10 What is the Git command used to create a new branch? git branch new-branch git new-branch git checkout new-branch git create new-branch 10 / 10 What is the purpose of 'git status'? To display a list of available branches To show the commit history of the repository To display the current state of the working directory and staged changes To switch to a different branch Your score isThe average score is 0% 0% Restart quiz