Skip to content

learn-co-curriculum/dsc-git-intro-qz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enough Git for Learn

Overview

Take the quiz below to make sure you're familiar with the crucial git commands and workflows to interact with GitHub and Learn.

???

Quiz - Enough Git for Learn

?: What's the git command that downloads your repository from GitHub to your computer?

( )git push ( )git fork (X)git clone ( )git commit

?: How do you create a copy of a lab under your own GitHub account so that you can solve the lab?

(X) Forking it via the GitHub interface. ( )git fork ( )git clone ( )git pull-request

?: What's the opposite of git clone, instead of downloading your code from GitHub, uploads your changes and code back to GitHub?

(X) git push ( ) git add ( ) git upload ( ) git status

?: How do you check the state of your local git repository since your last commit?

( )git check (X)git status ( )git commit ( )git diff

?: How do you stage files for a commit?

( )git stage ( )git commit (X)git add ( )git reset

?: How do you save the current state of your code into the git version control?

(X)By committing the staged changes with git commit ( )By adding all changes and staging them with git stage ( )By adding all changes and staging them with git add ( )By creating a new commit with git init

?: What's a shortcut to staging all the changes you have?

( )git commit add . ( )git commit . (X)git add . ( )git push -am "Message"

?: How do you supply a commit message to a commit?

( )git message "I'm coding" ( )git add "I'm coding" ( )git commit "I'm coding" (X)git commit -m "I'm coding"

?: How can you both stage and commit all changes with a message in one step?

( )git message -am "I'm coding" ( )git add -a "I'm coding" ( )git commit -a "I'm coding" (X)git commit -am "I'm coding"

?: What comes first, staging with git add . or committing with git commit?

(X)Staging your commits with git add ( )Committing with git commit

???

View Git Quiz on Learn.co and start learning to code for free.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published