git命令上传本地项目

1.在git上创建项目

2.右键文件夹 git bash here


3.初始化 本地仓库 git init


4.克隆项目 git clone 项目地址

5.将需要上传的文件放入克隆下来的文件内

6.将文件放入git git add 文件名/文件夹名

7.更新项目 git pull

8.提交到本地仓库 git commit -m "提交备注"

9.将项目提交到线上git仓库 git push origin master

使用idea提交的时候报Push to hhtl/master was rejected错误

猜你喜欢

转载自www.cnblogs.com/HQ0422/p/13131693.html