Git Github Learn Quiz

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
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?

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?

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
git status
git commit
git diff

How do you stage files for a commit?

git stage
git commit
git add
git reset

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

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 .
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"
git commit -m "I'm coding"

What is the correct commit syntax for all changes with a message?

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

How do you submit a solution to Learn? (select all that apply)

git submit
git pull-request
By creating a Pull Request through the GitHub interface
learn submit
git commit -am "Done with Lab"

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

Staging your commits with git add
Committing with git commit

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

Unlock your future in tech
Learn to code.

Related Topics

Learn about Flatiron School's Mission

With a new take on education that falls somewhere between self-taught prodigy and four-year computer science degree, the Flatiron School promises to turn students with little programming experience into developers.

In the six months since the Manhattan coding school was acquired by WeWork, it has spawned locations in Washington, D.C., Brooklyn, and London. Now, WeWork is opening a fourth Flatiron School location, this time in Houston.

Adam Enbar, Flatiron School's cofounder, believes now is the time to grow. "How the world is changing has impacted working and learning in very similar ways. We think education fundamentally is about one thing: enabling people to pursue a better life."

Learn. Love. Code.
Students come to Flatiron School to change their lives. Join our driven community of career-changers and master the skills you need to become a software engineer or a data scientist.
Find Us