首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >GIT:从远程服务器推送到远程服务器

GIT:从远程服务器推送到远程服务器
EN

Stack Overflow用户
提问于 2017-02-26 14:12:21
回答 1查看 583关注 0票数 2

我通过ssh命令连接到(大学的)远程服务器。我希望将上游数据从该服务器推送到远程git存储库。我只想通过https (ssh键没有设置)来实现它。

我试图通过命令:git push -u https://gitlab.com/username/reponame.git master来实现它,但是GitLab甚至都不问我的凭据(存储库是私有的,所以我希望得到一些授权)。

我该怎么做呢?

编辑:(很抱歉耽搁了,但是由于ssh连接太多,我被踢出了大学网络)

对评论的答复:

@Salmangit remote show origin不工作

(没有设置原点:fatal: 'origin' does not appear to be a git repository),

(原点设置为git@gitlab.com:username/reponame.git - error ssh: connect to host gitlab.com port 22: Connection timed out)

@sajib :我得到以下错误:fatal: unable to access 'https://gitlab.com/username/reponame.git/': Failed to connect to gitlab.com port 443: Connection timed out

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-02-26 15:12:57

未能连接到gitlab.com端口443:连接超时

那应该是一个proxy issue, as described here

这是典型的情况下,您没有直接的互联网访问,但必须首先设置一个代理。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42469554

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档