version control coursera week 3 quiz answers
Knowledge Check: Git and GitHub
1. In git, the repository on your device is known as a Remote.
- True
- False
2. In git, what is the operation used to initially download a repository?
- pull
- clone
- push
3. The staged area is used to prepare all your files and changes for committing.
- True
- False
4. Once a file is committed using the git commit operation, it is available on all remote repositories.
- True
- False
5. What of the following commands allow you to inspect your current changes before committing?
- git add
- git diff
- git log
6. Forking allows you to contribute to another person or organisation’s repository by creating your own copy of the repository.
- True
- False
Module Quiz: Working with Git
7. The git add command will add files and changes to the staged area.
- True
- False
8. What git command will show you the current state of the local working directory?
- git clone
- git pull
- git status
9. What command do you use to upload changes to a remote repository?
- git clone
- git push
- git commit
10. The git diff command will show the revision history of a repository.
- True
- False
11. Which command is used to download the latest changes from a remote repository?
- git pull
- git push
12. You want to create a new branch named “feature”. Which of the following commands can you use?
- git clone feature
- git branch feature
- git checkout -b feature
13. You’re working on a clothing store application and run the git diff command on your local repository. It outputs the lines below. Which clothing item was removed as part of these changes?
@@ -4,8 +4,8 @@
* Hat
-* Shoes
+* Dress
* Watch
- Hat
- Shoes
- Dress
- Watch
14. What command in git can be used to show all changes made by each developer?
- git clone
- git blame
- git diff
- git log