1.创建远程仓库,这个就是该仓库的地址

 VSCode将本地项目代码上传到gitee中

 

 

VSCode将本地项目代码上传到gitee中

 

2、查看git的版本 git --version

VSCode将本地项目代码上传到gitee中

 

 

3、使用git init命令初始化git

VSCode将本地项目代码上传到gitee中

 

 

4、使用git status命令来查看文件是否被修改  ; git add *命令将所有文件交给git追踪

VSCode将本地项目代码上传到gitee中

 

 

 5、 git commit -m "userful odoo" 命令来提交我们的项目代码

VSCode将本地项目代码上传到gitee中

 

 

6、使用git reflog命令查看提交的日志

VSCode将本地项目代码上传到gitee中

 

 

7、来使用   git remote add origin 远程仓库地址:【】

      7.1、如果报错:error: remote origin already exists.

     VSCode将本地项目代码上传到gitee中

 

     解决办法:删除origin     命令:git remote rm origin  后再 git remote add origin https://gitee.com/ooooo/xxxxxx.git 该条命令将本地仓库与远程仓库绑定

   VSCode将本地项目代码上传到gitee中

 

 8、使用 git push origin master  上传代码,最后登录gitee查看代码

VSCode将本地项目代码上传到gitee中

 

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2021-10-13
猜你喜欢
  • 2022-12-23
  • 2020-04-14
  • 2021-11-18
  • 2021-04-07
  • 2021-10-07
  • 2021-10-19
相关资源
相似解决方案