To create a GIT project under Windows system

Source: Internet
Author: User
Create a GIT project under Windows system 1 download Gitbash

https://gitforwindows.org/

2 Setting Sshkey

First check whether the key CD ~/.ssh has been generated, and if the returned LS has 3 files, the key has already been generated.
If there is no key, the

ssh-keygen -t rsa -C "user‘s email"

Generated, the process of generating a 3-time enter the return. (default path, default no password login)
After the build succeeds, go to the corresponding directory C:\Users\ the computer user name. SSH, open id_rsa.pub with Notepad and get SSH key public key.
Switch to the GitHub page, expand the small triangle of your avatar, click Settings, then open the SSH keys menu, click Add SSH key to add the key, and fill in the title (preferably consistent with your local repository).
Then paste the key in the Id_rsa.pub file to this, and the last add key to generate the key

3 Creating a local warehouse

Select the local warehouse folder, and then execute GIT init to initialize the GIT repository
Then execute git add separately. and git commit-m "ADD ..." for local code submission
Then copy the project's warehouse address to the GitHub Web page
Go back and execute git remote add origin "remote Warehouse address" to connect the local warehouse and the remote repository
Finally GIT pull Origin master executes Git push origin master to upload the local project to the remote

To create a GIT project under Windows system

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.