Git Online Test
About the test
The Git online test assesses the ability to work with source control mechanisms using the source control tool Git.
The assessment includes work-sample tasks such as:
- Switching between and merging feature and master branches.
- Executing various operations on a branch.
- Excluding files from source control using Git Ignore.
A good software engineer or developer should know how to use Git to commit changes, merge branches, checkout commits, and use other source control mechanisms.
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