Git Tutorial
Menu
Git and GitHub
Menu
Git Contribute
Menu
Git Advanced
Menu
Git Undo
Menu
Intoduction to Git and GitHub
Defining Git?
Git is a widely popular version control system that was created by Linus Torvalds in 2005. It has been maintained by Junio Hamano since then.
Uses:
- Keeping a track of changes related to code.
- Tracking by whom are the changes.
- Coding collaboration.
What does Git do?
- Helps manage the projects with Repositories.
- Make a clone of the project to work on a local copy.
- Using staging and committing, it controls and tracks the changes.
- Allows working on different parts and versions of a project by branching and merging.
- Pull the latest version of the project to a local copy.
- Local updates are pushed to the main project.
Working with Git
- Makes it a repository through the initialization of Git on a folder.
- To keep a check on the changes in that folder. Git creates a hidden folder.
- When a file is changed, added, or deleted, it is categorized as modified.
- The Staged files are Committed when prompted Git stores a permanent snapshot of the files.
- Git helps to view the full history of every commit.
- Provides reverting to any previous commit.
- keeps track of changes made in each commit.
Why Git?
Git is used by approximately 70% of developers, reasons being:
- Developers can collaborate from anywhere in the world.
- Developers can view the full history of the project.
- Developers can revert to earlier versions of a project.
What is GitHub?
- Git is not similar to GitHub.
- GitHub designs tools by using Git.
- GitHub is the biggest host of source code and is owned by Microsoft since 2018.