Top 20 Git Interview Questions 2021

Top 20 Git Interview Questions


1.What is Git?


2.What do you understand by the term ‘Version Control System’?


3.What is a Git repository?


4.How can you initialize a repository in Git?


5.What’s the difference between Git and GitHub?


6.Name a few Git commands with their function.


7.What are the advantages of using Git?


8.How is a bare repository different from the standard way of initializing a Git repository?


9.What is a commit message, and how is the commit command executed?


10.Explain the git pull command.

11.Difference between git fetch and git pull.


12.What is a merge conflict in Git?


13.Explain the git push command.


14.How do you resolve a merge conflict?


15.What is the process to revert a commit that has already been pushed and made public?


16.What is Git stash?


 17.What language is used in Git ?


18.Name some of the popular Git hosting repositories.


19.What does the git reset --mixed and git merge --abort commands do?


20.How do you find a list of files that has been changed in a particular commit?