1、(先进入项目文件夹)通过命令 git init 把这个目录变成git可以管理的仓库

git init

2、把文件添加到版本库中

git add -A

3、用命令 git commit告诉Git

git commit -m 'first'

4、关联到远程库

git remote add origin 你的远程库地址

git remote add origin 'https://git.oschina.net/s/vue.git'

5、获取远程库与本地同步合并

git pull origin master

6、使用 git push命令

git push --set-upstream origin master

git push -u origin master   //github 使用了此条命令

 

相关文章:

  • 2022-01-01
  • 2021-07-29
  • 2021-12-15
  • 2022-12-23
  • 2021-05-27
  • 2021-08-28
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-01-06
  • 2021-05-19
  • 2021-09-29
相关资源
相似解决方案