New Bird in GitHub

Source: Internet
Author: User

First Use first to establish local GitHub information:

git config--global user.name newbird

git config--global user.email [email protected]

SSH-KEYGEN-T rsa-c [email protected]

The command will generate the public key under ~/.ssh/id_rsa.pub

Open the file and copy the public key to the new SSH key in SSH and GPG keys in the GitHub user home page

Open the repostory you want to sync in the home page, select clone and download select clone with SSH

Copy the generated SSH key and execute git "ssh key you copyed" in the shell, then sync the repository to local

Modify the local repository and push to the home page:

git add filename//filename can save

Git commit-m "xxxxxx" branchname-a//branchname added to Branch branch, which saves

Git push Origin master//origin master can save

New Bird in 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.