Github for MAC-SSH Keys

Source: Internet
Author: User
Tags sublime text git commands

http://blog.csdn.net/britainwei/article/details/44591297http://www.jianshu.com/p/31cbbbc5f9fa/

Prepare:(1) Register your GitHub account(2) Download GitHub for Mac client and log in
This time you can clone in Desktop from GitHub, cloning the project to a computer, but not to upload the new project to GitHub. You also need to configure some things.
when we use GitHub, the usual features: download, upload, modify, branch, multi-person co-development, view history, go back to a certain time node development ....
The most commonly used git commands is:
Add Add File contents to the Indexbisect Find by binary search the introduced a bugBranch List, create, or delete branchesCheckout Checkout a branch or paths to the working treeClone clone a repository into a new directorycommit Record changes to the repositorydiff Show Changes between commits, commit and working tree, etcfetch Download objects and refs from another repositorygrep Print lines matching a patterninit Create An empty Git repository or reinitialize an existing oneLog Show Commit logsMerge Join or more development histories togethermv Move or rename a file, a directory, or a symlinkPull Fetch from and integrate with another repository or a local branchpush Update remote refs along with associated objectsrebase Forward-port Local commits to the updated upstream headReset Reset Current HEAD to the specified staterm Remove files from the working tree and from the indexShow show various types of objectsstatus Show The working tree statustag Create, list, delete or verify a tag object signed with GPG
------------------------------------------1. Check if SSH keys exists command line: Ls-al ~/.sshchuuchuanwenchuangdeimac:~ developer$ Ls-al ~/.ssh
Total 64
DRWX------8 Developer Staff 272 4 16 15:59.
drwxr-xr-x+ developer Staff 850 4 15 11:47..
[Email protected] 1 developer Staff 6148 4 16 15:59. Ds_store
-RW-------1 Developer Staff 1766 3 18:29 Github_rsa
-rw-r--r--1 Developer Staff 404 3 18:29 Github_rsa.pub
-RW-------1 Developer Staff 1675 4 15:55 Id_rsa
[Email protected] 1 developer Staff 422 4 16:18 id_rsa.pub -rw-r--r--1 Developer Staff 1199 4 11:47 known_hosts
If there are files id_rsa.pubOr id_dsa.pub,表示ssh key存在。
Command line:ssh-keygen-t rsa-c "your email ([email protected])"
chuuchuanwenchuangdeimac:~ developer$ ssh-keygen-t rsa-c"[email protected]"Generating public/private RSA key pair.
Enter file in which to save the key (/USERS/DEVELOPER/.SSH/ID_RSA):/users/developer/.ssh/id_rsa.pub
/users/developer/.ssh/id_rsa.pub already exists.
Overwrite (y/n)? Y
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification has been saved in/users/developer/.ssh/id_rsa.pub.
Your public key has been saved in/users/developer/.ssh/id_rsa.pub.pub.
The key fingerprint is:

Through this command linessh-keygen-t rsa-c "your email ([email protected])" connects GitHub, generates public/private RSA key pair, prompts you to overwrite, selects Y overlay, and then prompts you to enter the password, Finally, you are prompted to save the success. you can go to your folder via/users/developer/.ssh/id_rsa.pub.pub to view.

Then you need to download a software that opens the pub. I am downloading this sublime text software. Use this software to open it, copy the contents (. Pub in the format: "Ssh-rsa space key value space your mailbox")
(1) Login to your github and find the Settings button

(2) SSH keys, Add ssh key

---------
Until there is no error, the green is shown. -------------------------------------------

You can now upload your project files using the GitHub for Mac client.

--

--

--

--It was submitted in this way. You can view it on GitHub on your own homepage repositories

--











Github for MAC-SSH Keys

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.