Basic Git Workflow
Backtracking in Git
Git Branching
Git Teamwork
Potpourri
100

This command creates a new Git repository.

git init

100

This command will restore the file in your working directory to look exactly as it did when you made your last commit.

git checkout HEAD filename

100

You can use this command to answer the question: "Which branch am I on?"

git branch

100

This command copies an existing remote repository to the current directory

git clone

100

With reference to Git, this is what VCS stands for.

Version Control System

200

What's wrong with the git command below?

Quotation marks are needed around the commit message.

200

In Git, the commit you are currently on is known as this.

the HEAD commit

200

Use this command to create a new branch.

git branch new_branch

200

This is a Git repository that allows multiple collaborators to work on the same Git project.

remote

200

True or False. When you are on “master” and create a new branch, the new branch and the "master" share the the exact same commit history.

True

300

The output below is typical of which command?

git log

300

All files can be added to the staging area using this command.

git add .

300

This command can be used to switch branches.

git checkout branch_name

300

The output below is typical of which command?

git remote -v

300

True or False. Git and GitHub are the exact same thing.

False

400

This command can be used to check the differences between the working directory and the staging area.

git diff
400

With this command, we can un-stage a file from the staging area.

git reset HEAD filename

400

This command can be used to delete a branch.

git branch -d branch_name

400

This command gets work from the remote and makes them available to merge, but does not merge the changes.

git fetch

400

This command will push your branch up to the remote, origin.

git push origin your_branch_name

500

This is 40 character-code a that uniquely identifies a commit

SHA (Simple Hashing Algorithm)

500

Which command allows you to "rewind" to a specified previous commit

git reset commit_SHA

500

What does the code below indicate? 

A merge conflict

500

Fill in the blank. The ___________ are steps that enable smooth project development when multiple collaborators are working on the same Git project.

Git Collaborative Workflow (found in Codecademy > Git Teamwork > Lesson 6 Git workflow)

500

You choose: What year was Git created?

Who created Git?

Git was created in 2005 by Linus Torvalds.

M
e
n
u