The fourth assistant training jobs

Github account first register and download

By learning network Baidu git commonly used commands: https: //blog.csdn.net/qq_19396391/article/details/80409306

Introduction to Git:

        Given some students may not know what Git is, I first make a brief introduction to Git. Git is a version control tools like svn, hg, and in fact he is more like a number, hg is a distributed version control tool, we can say git is currently the most popular is the most powerful open source version control tool.

        In fact, Git and founder of linux are linus, Git also for hosting linux code developed. Initially just getting Git source that will be modified, and after the adoption of the merger linus requests are consolidated by linus code by hand, and later with the activity of the community and the rapid pace of development, linus powerless, and it appeared at that time carried out by means of a Bitkeeper code hosting, then this is a fee (taking into account the strong community of linux, linux is free to the community), community many large cattle always something to do, began to try to crack Bitkeeper, and later also because of this the reason, Bitkeeper company terminated the linux hosting, linus in fact, is not optimistic about the svn or cvs and so on, two weeks later on the use of the development of Git, Git it was born. Later, with the development of github is also a fire and then the fire.

 

Git Features

        Next, we are concerned that Git has what features and Git can do for us, and he svn What is the difference. In fact, we are most familiar or svn, there is a central warehouse, we all go up checkout code, or establish branches according to their own needs, to switch branches, but which we depend is the largest network, if the network is hung up, we write the code it can not be submitted to the central warehouse, we can not rely on svn to manage, and can be said to be offline temporarily, and when the branch switching is a time-consuming process. Then we say Git, Git it is a distributed version control tool, in fact, he has no concept of a central warehouse, as long as our pc above Git installed, then each of us can create a repository on your own computer, and for others clone, here to talk about what is actually a clone of a clone warehouse, similar to the svn checkout, but it differs in that all the information will clone warehouse cloning, you can think of each clone is equivalent to the warehouse a copy, as a whole, an entire warehouse. But do we work to facilitate the synchronization and centralized management code of the code, we still need a central warehouse and then we all go up clone, follow-up on all submissions will push to the center of the warehouse. Git addition distributed one of the major features include a bright spot is different pros and cons of the Branch Manager Branch Manager, and the svn, Git uses the concept of pointers, learned c ++ may know that pointer is a concept, java which also has a program counter, in fact, it is similar. He points to a memory area rather than a specific file, we will demonstrate to the back.

The main features are summarized as follows:

        • is a free, open source, distributed version control system.

        • GIT is distributed, which is GIT and other version control systems, the core difference.

        • Every Git clone is a complete document library containing all the history and revision tracking capabilities

        • rely on a central server or network connection

        • repository localization, support for offline submission, does not affect the independent collaborative development

        • Its most prominent feature is the "branch" and "merge" operation is very quick and easy.
---------------------
Disclaimer: This article is CSDN blogger "izhangll 'original article, follow the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/zhangll_2008/article/details/78657482

Guess you like

Origin www.cnblogs.com/OldDriver6668/p/11348024.html