Git Online Test
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?
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.
- Download the master repository to a local directory or repository:
git _____ https://firstname.lastname@example.org/testdome.git
- Fix a bug in file test.cpp
- Mark that file test.cpp has been changed:
git _____ test.cpp
- Save the changes to the local repository:
git _____ -m 'Bug with testing is fixed'
- Send the changes to the original repository:
git _____ origin master
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.
3 more premium Git questions
Skills and topics tested
- 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
Sample candidate report
What others say
Simple, straight-forward technical testing
TestDome is simple, provides a reasonable (though not extensive) battery of tests to choose from, and doesn't take the candidate an inordinate amount of time. It also simulates working pressure with the time limits.
Jan Opperman, Grindrod Bank
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.
Mix questions for different skills or even custom questions in one test. See an example.
How TestDome works
Choose a pre-made test
or create a custom test
Invite candidates via
email, URL, or your ATS
a test remotely
Sort candidates and
get individual reports