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.