代码上传到github git init git add 文件名 git commit -m "日志" ssh-keygen -t rsa -C "邮箱账号" //build ssh key, generally cache C git remote add origin 仓库名.git //connection remote repo git push -u origin master // upload git pull origin master // download