1先进项目目录,通过git init 把这个目录变成git可以管理的仓库

github上传本地项目

2. 把文件添加到版本库中,使用命令 git add .  添加到暂存区里面去。

github上传本地项目

3.把文件提交到仓库 git commit -m"fix:引号内是提交说明"

github上传本地项目

4.将本地与远程库关联git remote add origin 你的远程库地址

github上传本地项目

5. git push -u origin master 因为我远程库是空的所以我直接提交

github上传本地项目

github上传本地项目

相关文章:

  • 2021-05-13
  • 2021-07-19
  • 2021-05-11
  • 2021-08-01
猜你喜欢
  • 2021-08-01
  • 2021-10-26
  • 2021-11-13
  • 2021-09-14
  • 2021-06-18
相关资源
相似解决方案