Sourcetree using SSH to clone the Code cloud project

Source: Internet
Author: User
Tags ssh sourcetree
One, the difference between HTTPS and SSH cloning modeHTTPS: You will need to re-verify your account and password each time you get fetch and push push code. (For users who only learn to read project code) SSH: If you are a project member, you can use this method to obtain and push operations without having to verify the account again. You need to create an SSH key locally and add it to the code cloud beforehand. (suitable for project members, participate in project development) because HTTPS is relatively simple, so here is not speaking. The main way to talk about SSH cloning.
Second, create add Ssh-keyOpen Sourcetree, action--Open in terminal (install Git in advance)--enter command line here 1. Creation : ssh-keygen-t rsa-c wdehxiang@163.comThree times enter so you don't have to set a password to save trouble. Which wdehxiang@163.com this is my registered mailbox, you changed to your own. 2. View: Cat ~/.ssh/id_rsa.pubView public key value, right-click Copy. You can also enter C:\USERS\ADMINISTRATOR\.SSH to open id_rsa.pub copy public key with Notepad
3, add : Login Code Cloud--Personal center--Modify the information--ssh public key
4. Testing: Ssh-t git@git.oschina.net If you can see welcome, your nickname, the description succeeds.
5. Configuration: Open the sourcetree--tool--Options--select openssh--in the SSH client to complete

three, start to clone ssh 1, Login code cloud, enter the open source project, feel free to choose their own sourcetree to import a project. 2, after entering the project click on the clone, you will see HTTPS and ssh two ways, first we choose SSH mode, copy the URL 3. Open Sourcetree, click Clone 4, cloning success, can now start operation.


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.