Usage in GitHub Linux

Source: Internet
Author: User

I just got started with github and encountered a code upload problem.

Not much nonsense

1. register an account on the website and create a project test to enter the project. There is a project warehouse address in the lower right corner. Https://github.com/braverior/test.git

2. Install github in Linux

Sudo apt-get install git-core git-doc

3. Create an rsa public key

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

A password is required throughout the process.

Then enter ~ /. Find the Public Key id_rsa.pub In the ssh directory.

Copy text in Notepad

Go to the settings in github.com, find the pubkey option, and enter the public key.

Arbitrary proposition Filling

4. Set Account Information

Git config -- global user. name "lukeyan"

Git config -- global user. email xxx@gmail.com

5. Test link:

If you have 've successfully authenticated, but GitHub does not provide shell access. This indicates that the link has been established.

Next upload:

Git init

Git add. # If it is., it indicates uploading files in all directories. It can be a file.

Git commit-m'version 1.0'

Git remote add origin https://github.com/user name /test.git

Git push origin master-f

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.