Version control is a system that helps manage changes to a project's source code or files over time. It allows multiple contributors to work on the same project, keeping track of modifications, and providing the ability to revert to previous states if needed.
Git: It's a distributed version control system, a tool for tracking changes in source code during software development. It operates locally on your machine.
GitHub: It's a web-based platform that uses Git for version control. GitHub provides additional features like collaboration tools, issue tracking, and hosting repositories online.
- GitLab
- Bitbucket
- SourceForge
- Git Fetch: Fetches changes from a remote repository to your local repository but does not automatically merge them with your current work.
- Git Pull: Fetches changes and automatically merges them into your current branch.
Git rebase is a command used to integrate changes from one branch into another. It is often used to maintain a cleaner and more linear project history. The command is git rebase <branch>.
Git cherry-pick is used to apply a specific commit from one branch to another. It allows you to choose and pick individual commits. The command is git cherry-pick <commit-hash>.