Week 3 – Working with Remotes

introduction to git and github week 3

Practice Quiz: Introduction to GitHub

1. When we want to update our local repository to reflect changes made in the remote repository, which command would we use?

  • git clone <URL>
  • git push
  • git pull
  • git commit -a -m

2. git config --global credential.helper cache allows us to configure the credential helper, which is used for ...what?

  • Troubleshooting the login process
  • Dynamically suggesting commit messages
  • Allowing configuration of automatic repository pulling
  • Allowing automated login to GitHub

3. Name two ways to avoid having to enter our password when retrieving and when pushing changes to the repo. (Check all that apply)

  • Implement a post-receive hook
  • Use a credential helper
  • Create an SSH key-pair
  • Use the git commit -a -m command.

4. Name the command that gathers all the snapshots we've taken and sends them to the remote repository.

  • git commit -a -m
  • git push
  • git pull
  • git clone <URL>

Devendra Kumar

Project Management Apprentice at Google

Leave a Reply