Git Test

Exam Type: Git MCQ Skill Test
Questions Type: Multiple Choice Questions
Total Questions: 31
Time Limit: 30 Minutes
Last Update June, 2025

Pass Git Exam

75%
Total time

1 minute 2 seconds

Total time

1 correct answers

Total time

6 incorrect answers

Total time

6 not attempted

Start

Git Quiz

Question 1 of 31
30:00

How can you check your current git version?

What command lets you create a connection between a local and remote repository?

Your current project has several branches; master, beta, and push-notifications. You've just finished the notification feature in the push-notification branch, and you want to commit it to the beta branch. How can you accomplish this?

Which of the following is true you when you use the following command? git add -A

What will this command print to the Terminal? git remote -v

What does the following command do to the git repository history? git reset --soft HEAD^

You find a bug in your project, but can't locate where it was introduced in the commit history. How would you diagnose this problem?

Why would the following command be used? git rebase -i HEAD~10

Why would you use a pre-receive hook in your remote repository?

What option can you use to apply git configurations across your entire git environment?

How could you squash multiple commits together without using git merge --squash?

If you cloned an existing git repository, what would happen?

Suppose you needed to see a list of all files that had been modified or added to a specific commit over the course of a project. How would you accomplish this?

After you make changes to a tracked file, you run the following command. What will this do? git commit -a -m "Refactor code base"

Where are files stored before they are committed to the local repository?

Which statement is true when you use the git add -A command?

Your team lead needs a list of all commits that will be moved before you perform a rebase. Which command can you use to access that information?

Take a look at the git commands below and determine what the operation is doing?

In a situation where you have several commits for a single task, what is the most efficient way to restructure your commit history?

Which of the following is true of the git push command?

Which statement is true of the git push command?

After pushing commits to the remote repository for the first time using the command below, what shorthand command can you use in future? git push -u origin master

How would you create a custom shortcut or command across your git environment?

What command would let you modify your previous commit?

What is the best way to characterize the git commit structure?

What change will the following command make to the staging area files? git rm - -cached testfile.js

After you’ve successfully merged two branches and committed the changes, what is the next step in keeping your git structure organized?

You're in the middle of modifying a file when you're unexpectedly assigned an urgent bug fix on another branch. What would you do to temporarily save the work your doing locally without committing?

While modifying a file, you're unexpectedly assigned an urgent bug fix on another branch. How can you temporarily save your local work without committing?

What command would you use to create a new Git repository?

While working on a feature branch you try to use git rerere to solve a recurring merge conflict but nothing is happening. What could be causing this issue?

Git Test Explained

© 2025 Skill Test Answer. All Rights Reserved