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

创建一个空仓库

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

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

根据提示输入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

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

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


扫描二维码关注公众号,回复: 11214089 查看本文章

idea提交

猜你喜欢

转载自www.cnblogs.com/jinit/p/12907469.html
今日推荐