Git 集线器开关上传存储库

Git hub switch upload repository

我正在用 Django 开发两个应用程序。

我开发了第一个(app1)并上传到github(https://github.com/myprofile/app1)。 然后,在另一个单独的文件夹中,我开发了第二个 (app2) 并将其上传到 github (https://github.com/myprofile/app2) 上的另一个存储库。

现在我修改了 app1,我想将它上传到 github 上的存储库中。

如果我现在推送我的文件,它们将填满 github 上的 app2 存储库。

如何让我的提示 select app1 的存储库作为我的推送目标?

我想我需要类似的东西

git remote ??? origin https://github.com/myprofile/app1

问题不存在,因为在命令提示符中更改当前目录时,将要上传的文件的存储库目标的 url 已经设置,因为在存储库之前由于命令

之前与本地目录相关联
git init
git remote add origin https://github.com/myprofile/app1.git