Git Source Code Control tools Git basic information
- Git:git is a "distributed" version control tool
- Git's author is the father of Linux Linus Benedict Torvolds, who developed git just to assist with the development of the Linux kernel
- Git is already popular abroad, and it's slowly gaining popularity at home.
The difference between git and svn
- Structure: SVN is "centralized" versioning, Git is "distributed" version control
- Speed: (in most cases) Git is faster than SVN
- Branching: SVN's branch is clumsy, but git can easily create unlimited branches
- Security: Git's data backup is more secure than SVN, because git data is not just on the server, it has full data backup on every client side
- Older versions of SVN create an. svn file under each folder, and Git only creates a. git file in the root directory
Git's workflow
- Get code from the server (clone), the industry is called "cloning"
- Commit to local after modifying code
- When it is submitted to the server when needed
git command line
- Git init creates a repository
- Touch + file name initialization project, add required files
- Git commit-m "Here is callout information" submit Project to version control
git config--global user.email "[Email protected]"
git config--global user.name "Xiao Ming"
Configure Git's email address and user name
Git commit-m "This is like a callout message" and commits it at the end of the commit.
How Git Works
The code submission must have been placed in the stage before , and the stage in the diagram is a holdover area. The code in the stage can then be submitted to Master via the git commit command, which is equivalent to the trunk trunk in SVN.
git version number: The version number of commit ce126e257700f00ecd1ca1e92e58f58851ec41da git is the string generated after MD5 encoding .
git other common command line
- git log view git logs
- Git Status View Code current status
Git Source Code Control tools