Git Practice Questions
Git Practice Questions
1. What is Git?
Git is nothing but Global Information Tracker.
Git is also called as version control system and source code management.
It is used to track the files.
It will maintain the multiple versions of the same file.
Git is free and open source.
Git status is used to know the tracking and untacking files in our system.
Git log is a history, we can see the list of every commit in our project along some other
information like who commit the file and when we commit the file.
It allows us to get the code from one branch to another. This is useful when developers
work on the same code and want to integrate their changes before pushing them up in a
branch.
Command: git merge branch_name
8. What is git push?
Git push is used to share the local files into central repositories like GitHub and
Bitbucket.
Command: git push origin branch_name