初始化: - git init 添加远程仓库: - git remote add origin 地址 把修改加入暂存区: - git add . 提交修改 - git commit -m "备注信息" 推送到远程仓库 - git push - git push -u origin 分支名