•  使用gitee在服务器创建要上传的分支地

 使用git将本地代码上传到gitee【码云】

  • 将本地项目,初使化git目录 
git init

 使用git将本地代码上传到gitee【码云】  

  • 将你本地仓库与码云上的远程仓库关联起来

git remote add origin 远程仓库地址
git remote add origin https://gitee.com/howdychen/springbootdemo.git

使用git将本地代码上传到gitee【码云】
设置用户名和邮箱号
git config user.name ***

  git config ***@163.com

  • 使用命令查看远程分支配置情况
 cat .git/config

使用git将本地代码上传到gitee【码云】

  • git pull origin master 将码云上的仓库pull到本地文件夹
git pull origin master
  • 添加提交代码
git add .
  • 添加本次提交说明,git commit -m “第一次将本地代码上传码云”
git commit -m '第一次将本地代码上传码云'
  • 将本地代码上传到码云仓库:git push origin master
git push origin master

 



 

相关文章:

  • 2022-12-23
  • 2021-06-14
  • 2021-07-27
  • 2021-08-21
  • 2021-11-26
  • 2021-06-09
猜你喜欢
  • 2021-12-21
  • 2021-05-31
  • 2021-08-05
  • 2021-08-20
相关资源
相似解决方案