Git Source Code Control tools

Source: Internet
Author: User

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
    1. Structure: SVN is "centralized" versioning, Git is "distributed" version control
    2. Speed: (in most cases) Git is faster than SVN
    3. Branching: SVN's branch is clumsy, but git can easily create unlimited branches
    4. 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
    5. 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
    1. Get code from the server (clone), the industry is called "cloning"
    2. Commit to local after modifying code
    3. When it is submitted to the server when needed
git command line
    1. Git init creates a repository
    2. Touch + file name initialization project, add required files
    3. Git commit-m "Here is callout information" submit Project to version control
    4. git config--global user.email "[Email protected]"

      git config--global user.name "Xiao Ming"

      Configure Git's email address and user name

    5. 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
    1. git log view git logs
    2. Git Status View Code current status

Git Source Code Control tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.