Git is a version control system of distributed nature that is used to track changes in source code during software development. It is used for coordinating work among developers in project. It can also be used to track changes in any set of files. The main objectives of Git are speed, data integrity, and support for distributed, non-linear workflows.
GitHub is a Git repository hosting service, plus it adds many of its own features. GitHub provides a Web-based graphical interface. It also provides access control and several collaboration features, basic task management tools for every project.
a) With the Version Control System(VCS), all the team members can work freely on any file at any time. VCS gives the flexibility to merge all the changes into a common location.
b) All the previous versions and variants are neatly packed up inside the VCS. We can request any version at any time as per our requirement and we will have a snapshot of the complete project right at hand.
c) Whenever we save a new version of our project, our VCS requires a short description of the changes that we have made. Additionally, we can see what changes are made in the file’s content. This helps us to know what changes have been made in the project and by whom and when those changes were made.
d) A distributed VCS like Git allows all the team members to have a complete history of the project so if there is a breakdown in the central server you can use any of your teammate’s local Git repository.
git clone
git status
git add --a
git commit -m 'msg'
git push
git pull
git log
git rm
git checkout
git fetch
git branch
Git Repository is a place where we will store/maintain our project source code.
We can 2 types of repositories in git hub
1) Public Repository (Every body can see, we choose who can commit)
2) Private Repository (We choose who can see and who can commit)
Note: For every project we will create one git repository.
Cloning in a GitHub repository is nothing but taking project from git hub central repository to our local repository.
> git clone