Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use github on windows platform

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to use github on the windows platform". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use github on the windows platform.

Step1 registers github##

Register a github account and create a repo, assuming that the account is YourAccount,repo and test_repo,your_email@your_email.com

Step2 downloads necessary software # #

Download git software: https://code.google.com/p/msysgit/

I use Git-1.8.3-preview20130601.exe.

Step3 install git and configure # #

Install after download, please select the first and second items.

Step4 generates public and private keys # #

Open the git command line interface to test whether there is a local ssh, and enter:

Cd / .ssh

At this point, the system should report that "the system cannot find the specified file", then we continue to enter:

Ssh-keygen-t rsa-C "your_email@your_email.com"

Then ask your saved catalogue, please enter directly. Enter a password (passphrase) or enter directly, and your password when you register for github will generate the following content:

Enter the following code on the command line to copy the key to the clipboard (or open id_rsa.pub with an editor and copy its contents):

Clip

< ~/.ssh/id_rsa.pub step5 拷贝公私钥到帐户## 打开github Account Settings >

SSH Keys > Add SSH key > ctrl+v Press paste > save # # step6 Test connection # # Please open Git Bash and enter the following code:

Ssh-T git@github.com

If you prompt "can't be established." Please don't worry about what (the following code), just press yes.

The authenticity of host 'github.com (207.97.227.239)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)?

Then prompt for password (passphrase)

If you see

You've successfully authenticated, but GitHub does not provide shell access

The message indicates that the connection is successful.

# # setting user name for step7 # #

$git config-global user.name "YourAccount"

$git config-global user.email "your_email@your_email.com"

# # start fork with stetp8 # #

Cd / myfolder

Git clone git@github.com/YourAccount/test_repo.git

During the cloning process, you are asked to enter a password (passphrase). Git will automatically download the code and put it in the myfolder directory under the current directory # # stetp9 to get the latest update of the original library # step10 to submit your changes to the test_repo original library # #

At this point, I believe you have a deeper understanding of "how to use github on the windows platform". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report