使用 git 提交项目到 github 上

步骤

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

猜你喜欢

转载自blog.csdn.net/a1102325298/article/details/80808637
今日推荐