无法将png文件推送到Github存储库LFS错误
我一直在将png和图像文件推送到github。现在,我得到一个错误 我的设置:Windows+Visual Studio代码+git bash for terminal 这是我的.git/config文件无法将png文件推送到Github存储库LFS错误,git,github,Git,Github,我一直在将png和图像文件推送到github。现在,我得到一个错误 我的设置:Windows+Visual Studio代码+git bash for terminal 这是我的.git/config文件 [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[credential]
helper = store
[lfs "https://github.com/ryan/restart.git/info/lfs"]
locksverify = false
[remote "origin"]
url = https://github.com/ryan/restart.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
remote = origin
merge = refs/heads/main
因此,我将一个图像添加到我的存储库中
我知道
这就是git推送的结果:
guestaccount@LAPTOP-4G5S6I9K MINGW64 /c/xampp7.2/htdocs/folder2-temp (main)
$ git push
Enter passphrase for key '/c/Users/guestaccount/.ssh/id_rsa':
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s
我似乎总是被困在这里,这表明:
$ git push
Enter passphrase for key '/c/Users/guestaccount/.ssh/id_rsa':
batch request: ssh: connect to host github.com port 22: Connection timed out: exit status 255
error: failed to push some refs to 'ssh://github.com/ryan/restart.git'
为了解决这个问题,我一直在问如何从SSH切换到https,但这似乎不是问题所在
那么,基本上我如何再次上传png文件?这个特定的png文件只有46KB,所以github应该能够推送它。这看起来像是一个身份验证问题,简单明了。你能为这次回购做点什么吗?听起来好像您没有与远程服务器共享公钥。(在我看来,如果您使用的是“来宾帐户”,那么您可能没有任何SSH访问权限。)我不知道LFS,但可能所有映像现在都将进入LFS服务器,而这正是您尚未验证的映像。我不知道,但在您之前的问题中。你引用Git的话说
权限被拒绝(公钥)
,这听起来像是你在和一个不知道你的公钥的服务器说话;我不知道LFS服务器在哪里。但我相信LFS的要点是,有些文件位于其他地方,即LFS服务器。根据你提供的信息,这只是我的猜测。
$ git push
Enter passphrase for key '/c/Users/guestaccount/.ssh/id_rsa':
batch request: ssh: connect to host github.com port 22: Connection timed out: exit status 255
error: failed to push some refs to 'ssh://github.com/ryan/restart.git'