How to install Git to Mac OS X

Source: Internet
Author: User
Tags using git

Here are two ways of doing it;
One, using Git command-line
Second, the use of GUI tools Sourcetree, the function is very powerful, very convenient

Before installing, git, like SVN, needs to create a server that can create its own version Management Server. For individuals and small teams, it may be more appropriate to use a managed server,
Common to have GitHub and bitbucket. Here I introduce the next bitbucket,github because there is no personal free warehouse use, the code put up is open source, so here I choose BitBucket. In addition, now BitBucket's personal warehouse related pages have been basically Chinese. The registration process is also relatively straightforward.
See links; https://bitbucket.org/

here is the first introduction to using command-line.
1, download git installer, address; http://git-scm.com/downloads
2, open after download, double-click. PKG Installation
3, open the terminal, use the git--version command to view the installation version, there is a successful installation
/* The following 4.5 commands are automatically included if they have already been created using BitBucket */
4, create a global user name
git config--global user.name "first_name last_name"
5, create a global mailbox
git config--global user.email "[email protected]"
6, if you do not want to enter the remote repository each time the password, enter the following command
Git credential-osxkeychain
------> Wait
git config--global credential.helper osxkeychain
# Set git to use the Osxkeychain credential helper
The installation is complete at this git.

How to install Git to Mac OS X

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.