This Git Online Test
Separates Good From Bad Hires

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The Git online test evaluates a candidate’s ability to work with the source control tool Git, including the knowledge of how to commit changes, merge branches, checkout commits, and other source control mechanisms.

It’s an ideal test for pre-employment screening of candidates applying for any developer role. A good candidate for any job requiring the use of source control will be able to display competency with using Git, the most popular version control tool. This Git test can be used to screen large groups of candidates to select only those with the required Git knowledge to bring in for an interview.

Sample public questions

A developer is experimenting with code on a local copy of a branch. After a while, it is decided that this experiment does not work. So the developer decides to switch back to the master branch. However, the developer's local working copy is different from the HEAD.

Which of these options would allow the developer to successfully check out the master branch?

Git
Command Line Arguments
Easy
3 min
mca
Public

Write down a sequence of GIT commands (with no additional arguments) to download a repository, update a file, and save the changes back to the original repository. Assume that other developers didn't modify the file.

  1. Download the master repository to a local directory or repository:
    git _____ https://joe@testdome.com/testdome.git
     
  2. Fix a bug in file test.cpp
     
  3. Mark that file test.cpp has been changed:
    git _____ test.cpp
     
  4. Save the changes to the local repository:
    git _____ -m 'Bug with testing is fixed'
     
  5. Send the changes to the original repository:
    git _____ origin master
Git
Command Line Arguments
Easy
3 min
fill
Public

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the Git test with public questions.

Take a Certification Test

Sample silver certificate

Peter Gibbons

Java and SQL

TestDome
Certificate

TestDome logo on certificate

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

Skills and topics tested

  • Git
  • Command Line Arguments
  • Continuous Integration
  • Git Ignore

For job roles

  • Back-End Developer
  • DevOps Engineer
  • Full-Stack Developer
  • Mobile Developer
  • Software Developer
  • Web Developer
  • Web Front-End Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one short test. See an example.

How TestDome works

1
Choose a pre-made test or create a custom test.
2
Invite candidates via email, URL or your ATS
3
Candidates take a test remotely
4
Sort candidates and get individual reports

Want to know more?

Not exactly what you're looking for?

Related Git Programming Tests: