Window7 Installing Git

Source: Internet
Author: User
Tags version control system

1, git detailed introduction

I. The birth of Git

Linus Although Linux was created, but the expansion of Linux relies on enthusiastic volunteers all over the world, so many people write code for Linux worldwide, how is the code of Linux managed?

The fact is, before 2002, volunteers from all over the world sent the source code files by diff to Linus, and then by Linus himself to merge the code by hand!

You might think, why Linus not put Linux code in the version control system? Don't you have CVS, SVN, these free version control systems? Because Linus is firmly opposed to CVS and SVN, these centralized version control systems are slow and must be networked to use. There are some commercial version control system, although more than CVS, SVN, but that is paid, and the Linux open source spirit does not match.

However, by the year 2002, the Linux system has been developed for 10 years, the size of the code base makes it difficult for Linus to continue to manage by hand, the community's brothers also expressed strong dissatisfaction with this way, so Linus chose a commercial version control system BitKeeper, BitKeeper's owner, BitMover, has granted the Linux community free access to this version control system in the spirit of humanitarianism.

The great situation of unity and stability was broken in the 2005, because the Linux community cattle gathered, inevitably contaminated with some Liangshan heroes of the lakes and rivers habits. Andrew, who developed samba, tried to crack BitKeeper's protocol (and he was not the only one), and was discovered by the BitMover company (monitoring works well!). ), so BitMover company anger, to recover the free use of the Linux community.

Linus can apologize to BitMover company and make sure to discipline the brethren later, well, it is impossible. The reality is this:

Linus spent two weeks writing a distributed version control system in C, which is git! Within one months, the Linux system's source code has been managed by Git! How does a cow define it? You can appreciate it.

Git quickly became the most popular distributed version control system, especially in 2008, when the GitHub site came online, providing free git storage for open-source projects, and countless open-source projects migrating to GitHub, including Jquery,php,ruby and more.

History is so accidental, if not the BitMover company to threaten the Linux community, we may now have no free and super-useful git.

Two. Some advantages of git

Distributed: Git version control system is a distributed system, is used to save the project source code history State of command-line tools;

Save point: Git can keep track of the files in the source code, and can get the whole project amount status at a certain point in time; Can be in the save point of multiple submissions of the source code merge, you can also fall back to a savepoint;

git offline operation: git can be offline for code submission, so it is called a full distributed processing, git all the operations do not need to be online; This means that git is much faster than tools like SVN, because tools like SVN need to be online to operate, and if the network environment is bad, the commit code becomes very slow;

Git-based snapshot: Old version control tools like SVN save the commit point to a patch file, and Git commit is to point the commit point to the project snapshot at the time of submission, which contains some metadata (author, date, GPG, etc.);

git branching and merging: The branching model is the most significant feature of Git, because it changes the developer model, and SVN and other version control tools put each branch in a different directory, and git can switch between different branches in the same directory;
Branch immediacy: Creating and switching branches is done almost simultaneously, the user can upload a subset of branches, another branch can be hidden locally, without having to upload all the branches to GitHub;

Branching flexibility: Users can create merge delete branches at any time, multi-people realize different functions, can create multiple branches for development, then branch merge, this way makes development fast, simple and secure.

2, how to install git git Windows client official

Http://git-scm.com/download/win

Let's look at how to install git under Windows:

I'm using the WINDOW7/64 bit.

Run the exe file that you just downloaded with the administrator's identity

Must accept: agreement

Installation path:

You may have the following tips.

Select Installation components: You can also choose by default;
– Icon Component (addition icons): Choose whether to create a Quick Launch bar icon or whether to create a desktop shortcut;
– Desktop Browsing (Windows Explorer integration): A way to browse the source code, using only bash or git GUI tools for separate context browsing; Advanced contextual browsing methods using the Git-cheetahplugin plugin;
– Association Profile: Whether to associate a git configuration file that mainly displays the style of the text editor;
– Associated shell script file: whether to associate a script file executed by the bash command line;
– Using TrueType encoding: whether to use Truthtype encoding at the command line, which is a generic encoding developed by Microsoft and Apple

Start Menu Shortcut directory: Set the directory name of the shortcut in the Start menu, or choose to create a shortcut from the Start menu no longer

Set environment variables: choose what command-line tool to use, in general we use GIT bash by default, the default choice;
–git: Git bash command-line tool that comes with git;
– System comes with cmd: command-line tool using Windows system;
– both: The above two are configured at the same time, but note that this will cover the Windows Find.exe and Sort.exe tools, if you do not understand these as far as possible do not choose;

Select a line break format:
– Check out the conversion of Windows format to UNIX format: the line wrapping in Windows format is converted to UNIX format when committing;
– Check out the original format to UNIX format: No matter what the format, all into the UNIX format of the line to commit;
– No format conversions: Do not convert, check out what, just commit what

To start the installation:

During this installation, it is possible that the antivirus software will prompt you directly to allow the line.

After the installation is successful, we open the desktop shortcut icon:

The following command prompt form will appear stating that we have successfully installed

How to create a repository you can open this address: http://www.cnblogs.com/angelasp/p/3939869.html

Window7 Installing Git

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.