Git Part-I
Sign in to Google to save your progress. Learn more
What files is this .gitignore programmed to leave out? *
1 point
Captionless Image
Which statement is true when you use the git add -A command? *
1 point
You find that your project has a tag and branch both named push-notifications, which causes confusion when trying to print out given reference. How can you specify which branch you want to look at? *
1 point
How can you display a list of files added or modified in a specific commit? *
1 point
Your team lead needs a list of all commits that will be moved before you perform a rebase. Which command can you use to access that information? *
1 point
What command lets you create a connection between a local and remote repository? *
1 point
Which of the following is true you when you use the following command? *
1 point
Captionless Image
How could you squash multiple commits together without using git merge --squash? *
1 point
Where are files stored before they are committed to the local repository? *
1 point
Looking at the following commands, describe what is happening. *
1 point
Captionless Image
In a situation where you have several commits for a single task, what is the most efficient way to restructure your commit history? *
1 point
Why would you use a pre-receive hook in your remote repository? *
1 point
After you make changes to a local repository, you run the following command. What will this do? *
1 point
Captionless Image
Describe what the following git commands do to the commit history. *
1 point
Captionless Image
If you cloned an existing git repository, what would happen? *
1 point
What commands would you use to force an overwrite of your local files with the master branch? *
1 point
Why would the following command be used? *
1 point
Captionless Image
You find a bug in your project, but can't locate where it was introduced in the commit history. How would you diagnose this problem? *
1 point
What option can you use to apply git configurations across your entire git environment? *
1 point
After checking your git status you get the following output, which shows the file beta-notes.js in the commit but also unstaged. How can this situation occur? *
1 point
Captionless Image
What is the operation doing given the Git commands below? *
1 point
Captionless Image
What will the following command print to the Terminal? *
1 point
Captionless Image
What does the following command do to the git repository? *
1 point
Captionless Image
Your current project has several branches; master, beta, and push-notifications. You've just finished the notification feature in the push-notification branch, and you want to commit it to beta branch. How can you accomplish this? *
1 point
How can you check your current git version? *
1 point
Submit
Clear form
This content is neither created nor endorsed by Google.