Git集线器交换机上传存储库

问题描述 投票:0回答:1

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

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

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

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

如何告诉我提示选择app1的存储库作为我的推送目的地?

我想我需要类似的东西

git remote ??? origin https://github.com/myprofile/app1
github git-push git-remote
1个回答
0
投票

该问题不存在,因为在命令提示符下更改当前目录时,已经设置了要上传文件的存储库目标的URL,因为在将存储库与本地目录关联之前,先谢谢了到命令

git init
git remote add origin https://github.com/myprofile/app1.git
© www.soinside.com 2019 - 2024. All rights reserved.