Basic use of Git and GitHub in Linux

Source: Internet
Author: User

1. Create a Github Account, and create an SSH key in Linux: ssh-keygen 2. Add the public key to the Github Account information Account Settings to test whether the verification is successful. Ssh-T git@github.comHi onovps! You 've successfully authenticated, but GitHub does not provide shell access. 3. Create a project on GitHub. 4. Local configuration, create a Git project, and submit it to Github. Git config -- global user. name 'onovps 'git config -- global user. email 'onovps @ onovps.com '# global contact information. Optional. touch README. mdgit init # initialize git add README. md # add file to local repository git commit-m "first commit" # submit and note git remote add onovps git@github.com: onovps/test. git # Add a remote server version library named onovpsgit push-u onovps master # submit the local file to Github. 5. copy the project to your local machine: git clone git: // github.com: onovps/test. git 6. delete the GitHub file: git rm README. md # Delete git commit-m "rm README from the local inverted database. md "# submit to local git push onovps master # submit to Github

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.