For beginners of computer software Git I don't know much about it ,  I haven't touched before , But the teacher said to understand it , There's no concept , Only through the Internet to understand .
What I learned is as follows :                      
       Git Is an open source distributed version control system , For effective use 、 High speed processing from very small to very large ,BitKeeper, The latter has always been the case  Linux  The main source code tool used by kernel developers around the world . Some in the open source community feel that  BitKeeper  Is not suitable for the work of the open source community , therefore  Torvalds  Decided to start working on a more flexible version control system with licenses . Although the initial  Git  Is developed to assist  Linux  The process of kernel development , But we've seen it used in many other free software projects  Git. For example, recently moved to  Git  Come up. , quite a lot  Freedesktop  The project has also moved to  Git  On .      

From the perspective of general developers ,git It has the following functions :

1、 Clone the complete... From the server Git Warehouse ( Include code and version information ) On a single machine .

2、 On your own machine according to different development purposes , Create a branch , Modify the code .

3、 Commit code on a branch created by yourself on a stand-alone computer .

4、 Merge branches on a single machine .

5、 Put the latest version of the code on the server fetch Come down , Then merge with your main branch .

6、 Generate patches (patch), Send patch to lead developer .

7、 See the feedback from the main developers , If the main developer finds a conflict between two general developers ( Conflicts that they can work together to resolve ), They will be asked to resolve the conflict first , And then it's submitted by one of them . If the main developer can solve it by himself , Or no conflict , Just through .

8、 Solutions to conflicts between developers in general , Developers can use pull  Command resolve conflict , After resolving the conflict, submit the patch to the main developer .

From the perspective of the main developer ( Suppose the main developer doesn't have to develop code ) see ,git It has the following functions :

1、 Check email or other ways to check the submission status of general developers .

2、 Patch up , Resolve conflicts ( You can solve it yourself , You can also ask developers to solve the problem and submit it again later , If it's an open source project , And decide which patches work , Which don't need to ).

3、 Submit results... To the public server , Then inform all developers .

advantage :

For distributed development , Emphasize the individual .

Public server pressure and data volume are not too large .

Fast 、 flexible .

It's easy to resolve conflicts between any two developers .

Work offline .

shortcoming :

Lack of information ( At least there are few Chinese materials ).

The learning cycle is relatively long .

It's not normal thinking .

Bad code confidentiality , Once the whole library is cloned by the developer, all code and version information can be fully disclosed .
Now? Git Already available in windows Next use .
These are the information you've learned by searching , I believe that through the teacher's introduction, we can have a deeper understanding of .

understand Git More articles about

  1. Git Sub module - submodule

    There is a situation that we often encounter : A project at work needs to include and use another project . Maybe it's a third-party library , Or you Independently developed , Libraries for multiple parent projects . Now comes the question : You want to think of them as two separate projects , At the same time, I want to Use another... In one project ...

  2. Git Best practices in the team -- How to use it correctly Git Flow

    We have SVN Switch to Git For many years , Now almost all projects are using Github management , This article explains why to use Git, And how to use it correctly in the team . Git The advantages of Git Many advantages , But here's just a list of what I think ...

  3. Git And Repo introduction

    version control There's no need to say what version control is , It's about documenting our . Revision history of catalog or project, etc , Easy to view change history , Backup to restore previous versions , Multiplayer collaboration ... One . Original version control The original version control is purely manual version control : Revised text ...

  4. Git Bash Some of the commands and configuration

    see git Version number : git --version If it's the first time Git, You need to set up a signature and email : $ git config --global user.name " user name " $ gi ...

  5. stay Ubuntu 16.10 install git And upload the code to git.oschina.net

    1. Register an account and create a project First in git.oschina.net Register an account and create a new one project , Such as project name yes "myTest". 2. install git sudo ...

  6. The most detailed in history git course

    Digression Although the title is scary , But I cheated you in , ha-ha - Please don't worry , Be patient and look down Git What is it? Git It is the most advanced distributed version control system in the world . SVN And Git The main difference SVN It's centralized version control ...

  7. [ The way of version control ] Git Summary of common commands ( Welcome to my collection )

    Keep learning every day , Keep reviewing every day , Technology can never be learned , I always want to move forward Summarize the common problems in daily development and production Git Version control commands ------------------------------main-------------- ...

  8. 【 Solution 】Myeclipse 10 install GIT plug-in unit Integrate step The illustration

    In engineering development , Integration is often used GIT , Now let's talk about the plug-in installation steps PS: With Myeclipse 10 For example , Explain the integration installation steps . ----------------------main------------ ...

  9. git command

    Switch warehouse address : git remote set-url origin xxx.git Switch branches :git checkout name Undo modify :git checkout -- file Delete file :git rm  ...

  10. git Test command

    One .Git New local branch and remote branch association problem git checkout -b branch_name origin/branch_name perhaps git branch --set-upstream bra ...

Random recommendation

  1. vs

    https://www.visualstudio.com/downloads/download-visual-studio-vs

  2. LaTeX Algorithm code layout --latex2e Example summary

    LaTeX writing : Algorithm code layout --latex2e Example summary latex2e Examples of macro packages : \usepackage[ruled]{algorithm2e}                     ...

  3. javaweb learning Servlet Development ( Two )

    javaweb Learning summary ( 6、 ... and )--Servlet Development ( Two ) One .ServletConfig Explain 1.1. To configure Servlet Initialize parameters stay Servlet Configuration file for web.xml in , You can use one or more < ...

  4. hdu 5273 Dylans loves sequence

    Topic linking http://acm.hdu.edu.cn/showproblem.php?pid=5273 Dylans loves sequence Description Dylans is give ...

  5. IEnumerable,ICollection,IList,List difference

    do C# My classmates , We all know , A class can only have one inheritance class , But you can implement multiple interfaces . This sentence tells us :IEnumerable,ICollection,IList,List The difference is First, let me see IEnumerable: / ...

  6. android 05 Frame layout :FrameLayout Grid layout GridLayout

    xml file : <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android: ...

  7. CPU card

    CPU Generally speaking, a card chip means that the chip contains a microprocessor , It functions as a microcomputer . The IC card that people often use (IC card ) The sheet metal on it is CPU Card chip .CPU Cards can be applied to finance . insurance . traffic police . Government, industry, etc , have ...

  8. samentic stay IE9 I won't support it transition Solutions for

    The link of this article is :http://www.cnblogs.com/jying/p/6377696.html  , Reprint please indicate the source . In the use of samentic Encountered in the process IE9 The following error is reported : After looking up a lot of information ...

  9. Kibana5 Data exploration uses (Discover function )

    know Kibana Kibana One is for Logstash and ElasticSearch Provides log analysis of Web Interface . It can be used to search logs efficiently . visualization . Analysis and other operations .Kibana Usage scenarios of ...

  10. Windows Next MYSQL Read file as NULL

    Just record the solution to the problem . mysql edition : 5.7.18 problem : In execution mysql function load_file when , This function loads the contents of the specified file , Store to the corresponding field . Such as : SELECT LOAD_FILE(&qu ...