步骤
step1
git init
step2
git status
step3
git add .
step4
git commit -am "project first commit"
step5
注:这里用 https ,用 ssh 会报错。
https 从 github 上项目里可以获得。
git remote add origin https://github.com/ypf123/springMvcDemo.git
step6
git pull
step7
git push -u origin master
常用命令
- git branch
- git status
- git add .
- git commit -am “注释”
- git push