GitHub code Upload hosting detailed

Source: Internet
Author: User
Tags hosting
GitHub is a code-hosting platform for version control and collaboration.
First step: Generate The Secret key:
Ssh-keygen-t rsa-b 2048-c "[Email protected]"
Step two: View the secret key:
Cat/root/.ssh/id_rsa.pub
Step three: Copy the secret key to the appropriate location in the SSH and GPG key directory of the Https://github.com/settings/keys website.
Copy the site's clone or download address [url] after you finish
Fourth step: Git clone [email protected]:tianmaxingkun/hello-world.git (URL)
Cloned commands: Git clone
Fifth step: Copy the files to be uploaded to the cloned Remote Storage repository
git add 123.sh
Sixth step: Submit the file to be uploaded to the Remote Storage repository
Git commit-m ' 123 ' (-M is to add a description, if no error is added)
Seventh step: Upload the uploaded files to the Remote Storage repository
Git push Origin Master (if you want to add the-u parameter for the first time, then you don't need it)
Add:
git--version view git version information
git remote-v view Remote repository information

GitHub code Upload hosting detailed

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.