1. Introduction to version control

1 Functions that a version control tool should have

  • Collaborative modification
    • Multiple people can modify the same file on the server side in parallel.
  • data backup
    • Not only save the current state of directories and files, but also be able to save each submitted historical state.
  • Version management
    • When saving the file information of each version, it is necessary to not save duplicate data to save storage space and improve operating efficiency. In this regard, SVN uses incremental management, while Git uses file system snapshots.
  • Access control
    • Control the permissions of the personnel involved in the development of the team.
    • Review the code contributed by developers outside the team-unique to Git.
  • history record
    • View the modification person, modification time, modification content, and log information.
    • Restore local files to a certain historical state.
  • Branch management
    • Allows the development team to advance tasks on multiple production lines at the same time during the work process, further improving efficiency.

2 Introduction to version control

2.1 Version control

In the field of engineering design, version control is used to manage the design process of engineering blueprints. In the IT development process, you can also use version control ideas to manage the version iteration of the code.

2.2 Version control tools

  • Idea: version control
  • Implementation: version control tool
  • Centralized version control tools:
    CVS, SVN, VSS...
    Insert picture description here
  • Distributed version control tools:
    Git, Mercurial, Bazaar, Darcs...
    Insert picture description here

Guess you like

Origin blog.csdn.net/Lu1048728731/article/details/115236322