首页 > 解决方案 > GitAhead:意外的 HTTP 状态代码:404

问题描述

我在 linux 中从 GitKraken 切换到 GitAhead。我已经配置和工作的存储库有一个 gitlab 来源。

我在 GitAhead 中打开了存储库,每当我尝试获取、拉取或推送时,都会出现以下错误:

Unable to {whatever I'm doing} from 'origin' - unexpected HTTP status code: 404

如果我使用 linux 终端,我可以正常获取、拉取和推送同一个存储库

我不知道问题是否是 GitAhead 不要求提供凭据。

有任何想法吗?

# cat ./.git/config

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = https://gitlab.com/c****c/a****3.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "develop"]
    remote = origin
    merge = refs/heads/develop
[branch "master"]
    remote = origin
    merge = refs/heads/master
[user]
    name = Jorge
    email = j****z@c****c.com

两个月前我在GitAhead 的 github上问过同样的问题,但没有引起注意。

这个问题在我的 Windows 机器上不存在,在队友的 linux 机器上也不存在,所以它一定是配置错误或什么的。这很奇怪,因为在终端中使用 git 命令效果很好

标签: gitgitlabgitahead

解决方案


推荐阅读