【问题标题】:Git pull is not working in my local machineGit pull 在我的本地机器上不起作用
【发布时间】:2017-11-28 12:12:50
【问题描述】:

我在 VMWare 中使用 redhat Linux 服务器。

我在 github 中创建了一个存储库。并在所有设置后将其克隆到我的本地存储库后尝试 git push。我现在添加并提交了一个文件,以便将文件推送到远程仓库。

每当我执行 git push 时,它都会显示为这样,我的意思是我收到 403 错误页面。并显示https.github.com/reponame/repo/info/refs(无法访问url)

这里的东西在 url info/refs 添加到我的远程 repo 链接中,这就是它不接受 git push 的原因。不知道为什么要加。

在这里我注意到 git pull origin master 工作正常。

【问题讨论】:

    标签: git github git-push git-pull


    【解决方案1】:

    虽然我不知道您是如何设法将“信息/参考”输入网址的,但我知道您可以如何解决它。您可以通过运行更改原始远程 url

    `git remote set-url origin "https://github.com/<username>/<project-name>"`
    

    确保更改并满足您的要求,您应该一切顺利。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-02
      • 2018-09-16
      • 2023-04-07
      • 1970-01-01
      • 2014-09-26
      • 2018-02-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多