GIT Environment installation configuration

Source: Internet
Author: User

As long as we talk about the GIT installation environment mainly for Windows (because of the conditions), and so on after the opportunity to put Linux and Mac supplements.

Installation

To install Git on windows, you need to first download Msysgit,msysgit is the Windows version of Git, which can be installed from http://msysgit.github.io/and then directly.
After the installation is complete, find Git Bash in the Start menu and pop out a command-line window that shows that the GIT installation was successful!

Configuration

After installation, you need to configure your own GIT work environment, configure the work only once, and later, the upgrade will also follow the current configuration, on the command line to enter two lines of command:

$ git config --global user.name "Your Name"$ git config --global user.email "[email protected]"

Note the –global parameter of the git config command, which uses this parameter to indicate that all git repositories on your machine use this configuration, but you can also specify a different user name and email address for a particular repository.
These two configuration one is the user name one is the mailbox address, each time Git commits will refer to these two information, the person who submitted the update, so will be permanently included in the history with the update content

View Configuration

To check for existing configuration information, you can use the git config --list command:

You can also directly check the settings of an environment variable, just follow the specific name, like this:

View Help

If you want to learn about the various commands of git, the input $ git help will show all the common Git commands, and if you want to learn more about the use of a git command, enter commands such as:$ git help clone

GIT Environment installation configuration

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.