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 ~ /.Gitconfigwww.2cto.com # gitconfig -- globaluser. name & quot; use... 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. by default, the local user name and email 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 masteruser_name you can specify by yourself that at the beginning I always need user name and password authentication. if the submission fails, 403 is returned, followed by error, which can be modified in your project directory. /git/config url = https://github.com/xxx/xxx.git== > Modify the url = git@github.com: xxx/xxx. git and submit it over ssh on your github address. 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.
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