What is Git ?
Git is an open-source distributed version control system for managing the source code which keeps the track of it with many options. Basically, it is a software to track the changes of files mostly used for coders to work collaboratively and source code management during the software development.
Features of Git
Open Source
Scalable
Distributed
Security
Speed
Supports non-linear development
Branching and Merging
Data Assurance
Maintain the clean history
Git Commands
git add is a command used to add a file that is in the working directory to the staging area(area where git starts tracking and saving changes that occur in files).
git commit is a command used to add all files that are staged to the local repository(the area that saves everything i.e. all of your check points).
git push is a command used to add all committed files in the local repository to the remote repository. So in the remote repository, all files and changes will be visible to anyone with access to the remote repository.
git fetch is a command used to get files from the remote repository to the local repository but not into the working directory.
git merge is a command used to get the files from the local repository into the working directory.
git pull is command used to get files from the remote repository directly into the working directory. It is equivalent to a git fetch and a git merge .
git --version is used to check the version of git installed on your system