如何将IDEA上旧的项目git地址更换到新的git仓库地址下

时间:2024-03-15 09:50:38

如何将IDEA上旧的项目git地址更换到新的git仓库地址下
1.找到旧项目的url
如上图所示 如何将IDEA上旧的项目git地址更换到新的git仓库地址下
2.在新目录下建新的项目(New Project)
如何将IDEA上旧的项目git地址更换到新的git仓库地址下3.点击 New Project

依次点击导入项目(Import Project)–>通过url导入仓库(git Repo by URL)
填入对应的url,中间要加上自己的账号和密码。格式如下提示。
https://username:[email protected]地址
如:http://user:[email protected]:8081/Newproject
如何将IDEA上旧的项目git地址更换到新的git仓库地址下4.点击下面的创建项目(Create Project),跳转如下界面
如何将IDEA上旧的项目git地址更换到新的git仓库地址下
5.几秒后导入成功
如何将IDEA上旧的项目git地址更换到新的git仓库地址下
6.进入idea上项目文件夹内
如何将IDEA上旧的项目git地址更换到新的git仓库地址下
7.右键选择Git bash here,输入命令:
git remote set-url origin 你新的远程仓库地址
8.到此为止项目的git地址更新完毕,将项目push到新的项目即可