Git + github

Source: Internet
Author: User

Git + github use 1. Create a new Repository on github, after the basic information is completed, remember the git@github.com: xxx/xxx. git.2. local configuration username and mail configuration will be in ~ /. Gitconfig www.2cto.com # git config -- global user. name "username" # git config -- global user. the email wanghuafire@gmail.com generates the key, which will be in/root/by default /. ssh/id_rsa.pub, copy all the content to the ssh keys under accounting on github # ssh-keygen-C 'wanghuafire @ gmail.com '-t rsa3. submit the project www.2cto.com # cd project_name # git init # git commit-m "test" # git add. # git remote add user_name git@github.com: xxx/xxx. git # git push user_name master You can specify user_name by yourself. At the beginning, I always need username and password authentication. If the submission fails, 403 is returned, and then error is returned. You can modify it in your project directory. /git/config url = https://github.com/xxx/xxx.git==> modify url = git@github.com: xxx/xxx. git then uses ssh to submit the git address on your github. After updating the local code # git status ==>> you can check the status after the current code is updated and whether it has been submitted to the repository # git add. # git commit-m "test debug" # git push user_name master you can see the change history on 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.