文章目录
Git is a free and open source distributed version control system
About
Branching and Merging
Branching model: multiple local branches; creation, merging, deletion
- Frictionless context switching: switch between different branches
- Role-Based Codelines: goes to work, testing, day to day work
- Feature based workflow: new branches for new features
- Disposable Experimentation: just delete experimental branch
Do not have to push all of your branches, can choose to share just one of your branches, a few of them, or all of them.
Small and Fast
- nearly all operations are performed locally
- work on the Linux kernel
- written in C
Git is one or two orders of magnitude faster than SVN
Distributed
do a “clone” of the entire repository
- Multiple backups
- Any workflow
Subversion-Style Workflow (centralized)
Integration Manager Workflow
Dictator and Lieutenants Workflow
Data Assurance
Staging Area
[working directory] -> (git add) -> [staging area] -> (git commit) -> [repository]
- cna stage only portions of a modified file
- git commit -a : add and commit all changes
Free and Open Source
GPL v2