← GitChallenge.com

Coding · Facts & stats

Git facts & stats

7 fact-checked facts about Git and version control, each with the reason behind it. 5 more are in today's round and join this page after it closes.

Play today's round

The basics

Which command records staged changes as a new snapshot?

Answergit commit

git commit stores staged changes in the history.

Which command copies an existing remote repository?

Answergit clone

git clone downloads a full copy of a repository.

Going deeper

By default, what does git pull do?

AnswerFetches changes and merges them

git pull runs git fetch followed by a merge.

Which command stages files for the next commit?

Answergit add

git add moves changes into the staging area.

In Git, what does HEAD refer to?

AnswerThe currently checked-out commit or branch

HEAD points to where you are in the history.

Expert level

Which command applies a single commit from another branch onto your current branch?

Answergit cherry-pick

cherry-pick copies the changes of one chosen commit.

Which command uses binary search to find the commit that introduced a bug?

Answergit bisect

git bisect halves the range of commits until it finds the culprit.

Know these cold?Today's round is five questions like these, 20 seconds each. Your streak and level follow you to every arena.Play today's round