Mac002--git Installation

Source: Internet
Author: User
Tags install homebrew openssl pack

Mac--git Installation

Note: Before you install GIT, you can install homebrew and apply the brew command to install git.

One. MAC Installation Homebrew

Reference Blog: 51279369

Homebrew official website http://brew.sh/index_zh-cn.html

Description: Homebrew short brew, is Mac OSX software package management tool, can be conveniently installed in the Mac software or uninstall software, can say homebrew is the Mac Apt-get, yum artifact

1. Homebrew Installation

// Open terminal, enter command " $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "

2. Homebrew use

// Search Software: Brew Search software name, such as Brew search wget // Install the software: Brew Install software name, such as Brew install wget // Uninstalling the Software: Brew Remove software name, such as brew remove wget  
Brew uninstall software name, such as Brew uninstall wget

3. The successful installation of homebrew is shown below:

centlingdemacbook-pro:openssl-1.0.2g centling$ Ruby-e"$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"==>This script would install:/usr/local/bin/Brew/usr/local/library/.../usr/local/share/doc/Homebrew/usr/local/share/man/man1/brew.1/usr/local/share/zsh/site-functions/_brew/usr/local/etc/bash_completion.d/brewpress RETURN toContinueor any other key to abort==>/usr/bin/sudo/bin/mkdir/usr/Local==>/usr/bin/sudo/bin/chmod g+rwx/usr/Local==>/usr/bin/sudo/usr/sbin/chown centling:admin/usr/Local==>/usr/bin/sudo/bin/mkdir/library/caches/Homebrew==>/usr/bin/sudo/bin/chmod g+rwx/library/caches/Homebrew==>/usr/bin/sudo/usr/sbin/chown centling/library/caches/Homebrew==>Downloading and installing Homebrew...remote:counting objects:458, done.remote:Compressing objects: -% (416/416), Done.remote:Total458(Delta -), reused277(Delta -), pack-reused0Receiving objects: -% (458/458),701.87KiB |116.00kib/s, done. Resolving deltas: -% ( -/ -), done. From https://Github.com/homebrew/brew* [NewBranch] Master-and origin/Masterhead isNow at 496fff6 Doco:more updates forCore/Formula separation==> Tapping homebrew/corecloning into'/usr/local/library/taps/homebrew/homebrew-core'... remote:counting objects:3660, done.remote:Compressing objects: -% (3545/3545), Done.remote:Total3660(Delta -), reused425(Delta3), pack-reused0Receiving objects: -% (3660/3660),2.75MiB |375.00kib/s, done. Resolving deltas: -% ( -/ -), done. Checking connectivity ... done. Tapped3535Formulae (3,686Files8.6M)==> installation successful!==>Next stepsrun ' Brew help ' toGetStartedcentlingdemacbook-pro:openssl-1.0.2g centling$

Two. Apply brew to install GIT version control tools

Reference Blog: 53214933

1. Open terminal, enter command: Brew install git

2. After you install git, configure your user name and user mailbox to use this information every time you interact with git.

git config--global"your_name"  --global"[ Email protected]"

Configuration information can be changed, and later you want to change it using the instructions above. You can also use git config --list the instructions to view git configuration information.

Git by default is case insensitive, that is, a file name is a letter of the case of the conversion of the change of a word, Git ignores this change, resulting in the synchronization of code errors, so the recommended size of Git is set to be case sensitive.

False

Related Git Learning Reference blog:

53214933

The Git tutorial, which describes how git works, can be read carefully.

Git Community book Chinese introduces git for specific use, and this book is a good one for git.

git practice, practice git's various instructions

Mac002--git Installation

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.