我在gitlab中创建了一个回购程序,并以全局的方式设置了user.name。
当我试图推送我的项目时,在插入我的密码后,我会得到以下错误:
致命:“user/test.git”似乎不是git存储库
致命:无法从远程存储库读取.
请确保您拥有正确的访问权限,并且存储库存在.
My.git/config:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = git@gitlab.domain.tld:user/test.git
fetch = +refs/heads/*:refs/remotes/origin/*输出来自"git远程-v:
origin git@gitlab.domain.tld:user/test.git (fetch)
origin git@gitlab.domain.tld:user/test.git (push)有什么问题吗?
发布于 2014-10-21 17:19:12
试着使用以下方法:
git push https://username:password@gitlab.com/user/test.git我在较新版本的git中看到了一些问题,当我每次都不指定用户名和密码时,这会给我带来麻烦。我肯定有办法解决这件事,但我还没有想清楚。Git建议回滚到旧版本,但我相信有一个不那么激烈的方式。
发布于 2018-11-02 17:04:19
在要添加的设置中
git push https://yourusername:yourpassword@gitlab.com/user/test.githttps://stackoverflow.com/questions/26492444
复制相似问题