Interview Questions on Git

1. What is Git ?

Ans: Git is a distributed revision control and source code management system with an emphasis on
speed.

2. Who developed Git ?

Ans: Linux Torvalds

3. What is the use of the local repository ?

Ans: Users can perform many operation with the local repository such as add file, remove file , rename file, move file, commit changes and many more.

4. What is blob ?

Ans: A blob holds the file data but doesn't contain any metadata about the file.

5. In git what is Tree ?

Ans: Tree is an object which represents a directory.


Click on below for Devops technical interview QA book:

https://amzn.to/2Lvihnh


6. In git what is commit ?

Ans: Commit holds the current state of the repositiory.

7. In git what is branches ?

Ans: Branches are used to create another line of development.

8. What is the difference between tags and branches ?

Ans: Tags are very similar to branches but the difference is that tags are immutable.

9. In git what is clone ?

Ans: clone operation creates the instance of the repository.

10. In git what is pull ?


Ans: Pull operation copies the changes from a remote repository instance to a local one.

Click on below for Devops technical interview QA book:

https://amzn.to/2Lvihnh


Comments

Popular posts from this blog

Python & Shell Scripting Real Time Course Book & Videos

Top Five Devops Technical Interview QA Books

Linux-Command Hands-On (DF)