Register your account on GitHub, set up the first Hello-world repository, and then plan to configure the GIT platform on your machine. Because it is Mac OS, I am also a beginner, many functions need their own groping, so all kinds of Baidu, finally is finished. In this record of my configuration process, self-thinking is still relatively comprehensive, although in essence, many of the existing tutorial integration and practice, I do not know whether it can be considered original.
Preparatory work:
- Registered an account on the GitHub website
- System is Mac OS X EI Capitan
First step: Install Git
Here I use brew to install. Brew full name is homebrew, is a software management kit tool, using it to quickly and easily install the application, a simple brew install appname command can be done.
The first command I searched for was:
" $ (curl-fssl https://raw.github.com/mxcl/homebrew/go) "
Try, there are two problems, one is not connected (seems to be blocked by the GFW relationship), another problem is SSL, tossing a half-day has not been resolved. Later, I searched for another installation command, and tried it once, although this command rarely appeared in the search tutorial.
CURL-LSSF http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-c/usr/local--strip 1
This installs it all at once, and then you can install git directly using the command:
sudo Install git
In the middle there will be some need to enter the place, all the way directly press ENTER on it.
Step two: Install SSH key
First enter the command in the terminal:
Ssh-keygen -t rsa-c email address
The email address is the email address of the account you registered with GitHub. Then find the /users/user name/.ssh/id_rsa.pub This file, copy the contents of it, open the GitHub Web page personal settings ssh keys, paste the content just copied, Note The format requirements, do not copy more and do not copy less. If the key is successful, you will be prompted.
Step three: Create tokens and configure
In the terminal, enter the following command in turn:
" User name " " e-mail address " --tokens generated on GitHub by--global Github.token
One of the personal settings in GitHub is personal access tokens, click Create New token, select all the options, and you can use the GitHub API via Mac. The token is then copied to the corresponding location in the last command above, and the command is executed, and this step is complete.
Fourth Step: Install the client program
Of course, to install the official git Desktop, the URL is https://desktop.github.com/. Download the client and install, for Mac OS is to download a zip file, unzip and put it in the/applications folder. After the Git desktop with their own user name password to log in, to set it up, this is believed that we see how to do.
This is the end of the configuration process, and the next step is to use the GitHub feature on the desktop client.
Mac Build Git/github whole process