如何推向gitlab而不是github
我将文件克隆到gitlab,创建了一个新的分支,编辑了文件并最终将其推开。但是,它以某种方式创建了一个新的存储库,这是我的github中的一个新分支,我的gitlab中没有任何东西。我应该怎么办
I cloned the files in gitlab, created a new branch, edited the files and finally pushed it. But somehow it created a new repository, a new branch in my github and has nothing in my gitlab. What should i do
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您的
git Remote -V
在本地克隆存储库的根文件夹中输出。如果您“将文件克隆到gitlab中”,则URL应该是gitlab One(
https://gitlab.com/...
或sshgit@gitlab:.. .. 。
)如果没有,您可能会看到一个github url。
将其更改为现有的远程gitlab。
Check your
git remote -v
output in the root folder of your local cloned repository.If you had "cloned the files in gitlab", the URL should have been a GitLab one (
https://gitlab.com/...
or an SSHgit@gitlab:...
)If not, you might see a GitHub URL.
Changing it to an existing remote GitLab one would be: