创建一个空仓库

将克隆的项目上传到自己的github

进入项目根路径,右键git bash here

$ git push https://github.com/Jin-Tianyi/ruoyi-cloud-study.git

将克隆的项目上传到自己的github

根据提示输入github用户名和密码

将克隆的项目上传到自己的github

将克隆的项目上传到自己的github

上传成功

将克隆的项目上传到自己的github

更换远程仓库路径

修改.git/config中远程仓库地址

#方式一
$ git remote rm origin
$ git remote add origin https://github.com/Jin-Tianyi/ruoyi-cloud-study.git

#方式二
$ git remote set-url origin  https://github.com/Jin-Tianyi/ruoyi-cloud-study.git

#方式三
直接修改.git\config中的url

将克隆的项目上传到自己的github

#修改后提交
$ git commit
$ git push --set-upstream origin master(重新关联分支)

修改readme.md文件提交测试(过程中可能需要输入账号名、密码)

将克隆的项目上传到自己的github
将克隆的项目上传到自己的github

idea提交
将克隆的项目上传到自己的github
将克隆的项目上传到自己的github

创建远程分支

从已有分支切出一个新分支;
将克隆的项目上传到自己的github

$ git push origin master_new

相关文章:

  • 2021-09-01
  • 2021-04-11
  • 2021-09-16
  • 2021-05-11
  • 2022-02-12
  • 2021-08-31
  • 2021-09-16
猜你喜欢
  • 2021-09-03
  • 2021-12-10
  • 2021-08-29
  • 2018-07-26
  • 2021-08-27
  • 2021-04-16
  • 2021-07-15
相关资源
相似解决方案