Top 10 GIT Interview Questions For Sdet
Top 10 GIT Interview Questions For Sdet
SDET
By DevLabs Alliance
GIT hooks are Shell scripts that are executed before or after the corresponding GIT
commands, such as : commit, push and receive.
Git hooks are a built-in feature and there is no need to download them.
For eg.: GIT will try to execute a post commit script after a run of commit.
GIT Interview Questions for SDET
This command will fire the commit patch in $Editor. We just need to edit the message right
on the top line of the file, save and then quit.
GIT Interview Questions for SDET
A conflict in GIT arises when the commit that needs to be merged has some change in one
file, and also the current commit has change in the same place in that file.
In this case, GIT is not able to predict that which change should take precedence.
GIT Interview Questions for SDET
5. What is another option for merging in GIT and what is the syntax for
the same?
Syntax:
git rebase [new-commit]
GIT Interview Questions for SDET
‘git add’ is used to add file changes in working directory to staging area.
It tells GIT that certain updates to a particular file needs to be included in the next commit.
git add <file> : Stage all changes in the file for next commit.
git add <directory> : Stage all changes in directory for the next commit.
GIT Interview Questions for SDET
For eg.:
‘git reset’ is used undo all the changes in the local directory as well as in the staging area
and resets it to the state of last commit.
Synatx:
git reset
GIT Interview Questions for SDET
GIT version control is used to track the history of a collection of files and it also includes
the functionality to revert the collection of files to another version.
Each version captures a screenshot of the file system at a certain point of time. All files and
their complete history are stored in a repository.
GIT Interview Questions for SDET
10. Mention some of the best graphical GIT client for LINUX.
• Smart Git
• Git Cola
• GIT GUI
• qGit
• Git-g
• Giggle
Visit us at: www.devlabsalliance.com
Email: [email protected]
Contact: +91 9717514555