The basic workflow in git

Managed by git management GitHub project code, it is a distributed version control system (SVN previously used centralized version control system). Although GitHub management code may be, but the actual process is operated by git. (A local version control is generally used in git, generally used is the above server GitHub)

Git SVN relative advantages:

1. Local version control, each computer has its own local repository, no network can be controlled version.

2. Rewrite submit affirm, that can modify the statement submitted before (such as a.txt "This is My Documents"), but SVN submitted can not be modified or deleted once explained after.

3. Each operation on the git can be rolled back.

4. The sub-systems, a project can be made the same for generating a plurality of different branches needs.

5.git the whole amount (each version contains all the files and keep the integrity of the data), svn incremental (if you want to find files in the current version is not changed, it must fall back to the previous version to find)

Git three states:

1. modified (modified) 2. Have been staging (staged) 3. Has been submitted (commited)

 

Guess you like

Origin www.cnblogs.com/zcy9838/p/11563578.html