cd project //进入目录git init //新建git git add . //圈所有文件 git commit -m "Initial commit." git remote add origin git@github.com:username/your-project.git //上传 git push origin mastergit pull --rebase origin master //合并冲突git push -u origin master