Git Quiz (Set 6) Git (Set 6) 1 / 10 What does 'git clean -f' do? It displays a list of available branches It lists the untracked files and directories in the working directory It forcefully removes untracked files and directories from the working directory It discards local changes and reverts to the last commit 2 / 10 What is the purpose of 'git log --merges'? To display a list of available branches To list all merge commits in the repository To display the commit history To switch between branches 3 / 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 4 / 10 What is the 'merge conflict' in Git? A conflict between two different branches A conflict that occurs when Git is unable to automatically merge changes from two branches A conflict that occurs during the process of switching between branches A conflict between the local repository and a remote repository 5 / 10 What is the purpose of 'git push --force'? To push local changes to a remote repository To undo the last commit To forcefully overwrite the remote branch with local changes To create a new branch 6 / 10 What does 'git stash apply' do? It applies the most recent stash while keeping it in the stash list It permanently deletes the stash It discards the stash and reverts to the previous commit It creates a new stash 7 / 10 What is the purpose of 'git pull --rebase'? To fetch changes from a remote repository without merging To merge changes from a remote repository into the current branch To undo the last commit To fetch changes from a remote repository and reapply local commits on top 8 / 10 What does 'git reset --soft' 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 9 / 10 What is the 'detached HEAD' state in Git? A state where the repository has no commits A state where the repository is not connected to a remote repository A state where the HEAD points directly to a specific commit, not a branch A state where Git is not installed 10 / 10 What is the purpose of 'git rebase -i'? To list the available branches To interactively rewrite commit history To create a new branch To switch between branches Your score isThe average score is 0% 0% Restart quiz