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

Shuffle Q/A 1

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

Leave a Reply