Git Introduction
What is Git?
Git is a distributed version control system that helps you track your code changes.
When doing a group project, every developer gets their local repository with full commit history. The commit history makes Git fast, as now a network connection is not needed to create commits or perform diffs between commits
It is used for:
- Tracking code changes
- Tracking who made changes
- Coding collaboration
What does Git do?
- Manage projects with Repositories
- Clone a project to work on a local copy
- Control and track changes with Staging and Committing
- Branch and Merge to allow for work on different parts and versions of a project
- Pull the latest version of the project to a local copy
- Push local updates to the main project
What is GitHub?
- GitHub is different from Git.
- GitHub is a popular distributed version control platform to help developers collaborate with each other remotely.
- Developers can share their codes using GitHub.
- You cannot use GitHub without Git but you can use Git without GitHub.
Different Commands in Git
- Git config
- Git init
- Git add
- Git diff
- Git commit
- Git reset
- Git status
- Git merge
- Git push
- Git pull
We will go over the Git commands in detail later in this tutorial.