Git Version Control-initial settings and use of Git (1)

Source: Internet
Author: User

System Information: Linux 3.4.36-gentoo

Git version: git version 1.8.2.1

I heard about the version controller a long time ago, and Git is an excellent version control software. Because there are not many teams that have worked on any projects, they have not learned how to use them. Next, let's take a look at how to manage projects in the future.

Git version control series related articles: http://www.bkjia.com/search.aspx? Where = nkey & keyword = 21033

If you take programming seriously, you must use the Version Control System ).
The most popular version management system is not Git.

 

1. What is Git?

Source code management (SCM) systems are not new ideas. Many attempts have been made to compile software that can develop software projects more quickly and simply. The latest source code solution includes the version control system, which can roll back the modification of the source code to remove harmful code from the project, or you can simply track who modified the content of the Code. The version control system tries to solve conflicts that occur when developers try to modify a file at the same time, which can prevent users from overwriting the modifications made by others. Many popular solutions used by source code management are trying to solve the invalidation problem in previous SCM solutions.


Centralized version control systems generally adopt two methods:
Some provide file locks to prevent parallel access by multiple users. These systems lock files so that only one developer can write data to the central repository at a certain time.
Other tools, such as CVS, allow multiple developers to edit the same file at the same time, and provide some mechanisms to merge these modifications later.


Popular version control systems include:

  • CVS
  • Subversion
  • Arch
  • Bazaar
  • BitKeeper
Git is the source code management software recently implemented by Linus Torvalds. As mentioned in the document, "Git is a fast and Scalable Distributed version control system with a rich set of commands, provides advanced operations and full access to internal systems."
Torvalds started to develop Git to replace BitKeeper as a transitional solution, which has been a major source code tool used by Linux kernel developers worldwide. Some people in the open source community feel that BitKeeper licenses are not suitable for the open source community, so Torvalds decided to study a more flexible version control system for licenses. Although Git was initially developed to assist in Linux kernel development, we have found that Git is also used in many other free software projects. For example, X.org has recently been migrated to Git, and many freeyuntop.org projects have also been migrated to Git.
Git is currently mainly used by software developers looking for alternatives to CVS or proprietary code management solutions. There are many differences between Git and CVS:
  • Branches are faster and easier.
  • Supports offline work. Local submission can be submitted to the server later.
  • Git commit is atomic and the entire project scope, unlike in CVS, it is for each file.
  • Each work tree in Git contains a repository with a complete project history.
  • No Git repository is inherently more important than other repositories.
  • 1
  • 2
  • 3
  • 4
  • Next Page

Related Article

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.