Git Windows Quick Access GitHub guide

Source: Internet
Author: User

1. Installation Address: https://git-for-windows.github.io/

Go straight to the next step

2. Install complete Enter the command:

" Your Name "  "[email protected]"

3. Create a remote repository

1. Create your own github account;
2. Create SSH key
1). Right-click Git Bash to enter the following command:$ ssh-keygen -t rsa -C "[email protected]"
    一路回车即可;
  2).登录GitHub点击①所标注的头像选择settings然后依次点击②③新建一个SSH key由于我已经建立了一个所以会呈状态,点开Delete
    可以删除创建的key

    

    3).找到由 1)创建出来的key在1)命令执行结束会在用户的主目录下创建.ssh目录,打开该目录下会有id_rsa和id_rsa.pub两个文件,前者为私钥后者为公钥

Open your public key to copy all the contents into the ④ can be the Title for your own defined click.

  

3. Create a remote repository
 

4. Create a local repository and establish a connection to the remote repository

$mkdir TEST$CD Test $pwd $git Init
$git remote add origin git@github.com:yourName/test.git
The PWD command displays the current directory origin for the remote warehouse name if you do not like it can be changed yourname for yourself GitHub name remaining for GIT basic operations Command self-consulted.

  

Git Windows Quick Access GitHub guide

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.