Git Part-IV
Sign in to Google to save your progress. Learn more
How would you configure Git to abort a commit if a smoke test script fails? *
1 point
What information does the git config file store? *
1 point
After starting to work on a new feature and creating new files in the working directory related to it, the customer determined the feature was no longer required. What command can be used to remove the untracked files from the working directory ? *
1 point
You stashed three sets of changes but cannot remember the contents of the first stash entry. What command would you use to see the details of the changes in the first of the three stash entries? *
1 point
Which use case is NOT a good candidate for a Git hook? *
1 point
What is the difference between git fetch amd git pull *
1 point
What is the difference between git branch -d and git branch -D? *
1 point
What command displays the difference between the working tree and the stage/index area, as well as files not tracked by Git? *
1 point
What is version control? *
1 point
What is the difference between Git and SVN? *
1 point
You have just completed rebasing your master branch and need to manually update the remote master, even though there is a merge conflict. How can you accomplish this? *
1 point
How does this command alter the currently checked-out branch? *
1 point
Captionless Image
Which command can be used to list the branches that have been merged into the currently checked-out branch? *
1 point
What is the difference between using the git stash and git stash pop commands? *
1 point
This command is an example of what kind of tag? *
1 point
Captionless Image
What information do Git reflogs (reference logs) store? *
1 point
Your current repository has three branches: master, beta, and push-notifications. You have just finished the notification feature and commit the changes to the push-notification branch, and you want to include them in the beta branch. How can you accomplish this? *
1 point
Which statement is true of the git push command? *
1 point
You would like to restore some previously stashed work to a new branch. How can you do that? *
1 point
Consider the following Git workflow:                                                  Which of the following options is correct ? *
1 point
Captionless Image
What is the difference between a soft reset (git reset --soft) and a hard reset (git reset –hard) ? *
1 point
Submit
Clear form
This content is neither created nor endorsed by Google.