1、cd 到你要添加的项目文件夹中

 

2、使用命令 git init

注:将你的目录管理成git仓库 就是初始化git

 

3、使用命令 git add . (注意一定要加点哦)

注:将你的文件添加到git库中

 

4、使用命令 git commit -m '你的备注文件'

注:将你的文件提交到git仓库中,然后备注你提交的文件是什么内容是什么主题是什么等

 

5、使用命令 git remote add origin 远程地址

注:和git远程地址建立连接

 

6、使用命令 git pull --rebase origin master 

注:获取远程地址的内容与本地合并 如果你的远程库没有东西就不用了   如果有内容就需要 并且要写明分支 master等

 

7、使用命令 git push -u orgin master

注:将本地的代码提交到远程上并push 输入用户名和密码

 

成功~~

 

相关文章:

  • 2021-10-18
  • 2022-12-23
  • 2022-01-06
  • 2022-02-09
  • 2021-11-07
  • 2021-08-15
  • 2021-04-02
猜你喜欢
  • 2021-10-28
  • 2021-05-03
  • 2021-11-15
  • 2021-10-13
  • 2022-01-21
  • 2022-03-14
相关资源
相似解决方案