Top 10 GIT Interview Questions For Sdet
Top 10 GIT Interview Questions For Sdet
SDET
By DevLabs Alliance
1. What is GIT?
GIT is a Distributed Version Control System (DVCS) and Source Code Management System
(SCMS) which is used to track changes to a file and also allows to revert back to any
particular change.
It has an ability to handle small and large projects with efficiency and speed.
GIT Interview Questions for SDET
GIT SVN
GIT is a Decentralized Version Control tool. SVN is a Centralized Version Control tool.
Entire repository can be cloned on the local Version history is stored on a server-side
system. repository.
Commits are possible even if offline. Only online commits are allowed.
Push/Pull operations are faster. Push/Pull operations are slower.
Work is shared automatically on commit. Work is not shared automatically.
GIT Interview Questions for SDET
C ensures that the overhead of runtimes associated with high level languages are reduced
and hence making GIT faster.
GIT Interview Questions for SDET
A GIT repository contains a directory named as .git where it keeps all of its metadata for
the repository.
The -a is used to instruct the git to commit the new content of all tracked files that have
been modified.
If any new file needs to be committed for the first time, “git add<file>” is used before git
commit.
GIT Interview Questions for SDET
Commits can be changed, formatted and reviewed in an intermediate area, before the
completion of commits.
git fetch downloads any new data from a remote repository but it doesn’t integrate this
downloaded data into the working files.
git pull downloads and also merges the data from a remote repository into the working
files.
It can merge conflicts as well if local changes are not committed.
Git Stash takes the current state of the working directory and puts it on the stack for later
and hence providing a clean working directory.
Git Stash is used when we need to switch to any other job and at the same time we don’t
want to lose our existing work.
GIT Interview Questions for SDET
When we want to remove the stashed item from the list, then git stash drop command is
used.
It removes the last added item in stash by default and it can also remove a specific item if
included as an argument.
Visit us at: www.devlabsalliance.com
Email: training@devlabsalliance.com
Contact: +91 9717514555