1.进入项目文件夹,初始化
git init
2.添加文件到版本库
git add .
3.提交文件
git commit -m "初次提交"
4.关联远程仓库
git remote add origin "xxxxxxxx.git"
5.获取远程库与本地同步合并(如果远程库不为空必须做这一步,否则后面的提交会失败)
git pull --rebase origin master
6.提交代码
git push -u origin master

参考:https://www.cnblogs.com/eedc/p/6168430.html

相关文章:

  • 2021-12-17
  • 2022-01-02
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-02-09
  • 2022-01-22
猜你喜欢
  • 2021-11-17
  • 2021-10-12
  • 2021-12-16
  • 2021-04-16
  • 2021-11-23
  • 2020-04-13
  • 2022-12-23
相关资源
相似解决方案