git uploads local code

Source: Internet
Author: User

1.git Installation

The installation reference text is as follows:

  

  

  

  

  

  

  

Final Finish

2 Use of Git

1. The first step to using GitHub is, of course, registering a GitHub account. After that you can create a warehouse (free users can only build public warehouses), create a New Repository, fill in the name after create, there will be some warehouse configuration information, this is a simple git tutorial.

2. Build a local repository (run git bash)

First, SSH key is created locally;
$ ssh-keygen-t Rsa-c "[email protected]"
Behind the[email protected]Change to your mailbox, then ask to confirm the path and enter the password, we use the default one-way return to the line. Successful words will be generated under ~/. SSH folder, go in, open id_rsa.pub, copy the key inside.sign in to the GitHub page, click Avatar, and select Account management. Then click the SSH key and then have a key that he added to copy the key you just copied. The addition is complete.

A. Go to the directory where you want to upload the folder (with the CD command)

    

B. Initialize the repository (git init) (this time ask for a hidden. Git folder next to the price clip)

    

C. Add to the local repository (git Add.)

    

D.

    

E. Adding a remote address

    

F. Uploading to the remote repository

    

This is uploaded to the remote repository. Go back to the GitHub main screen to see the code you just uploaded.

Remote Warehouse Connection: HTTPS://GITHUB.COM/LINHXH

git uploads local code

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.