I have a private gitlab instance that requires client authentication when trying to access it via https. So going to myserver.com
will only work if you install a client certificate in the web browser. This isn't a problem for regular usage because I only ever use git via SSH.
However, git LFS only appears to support HTTPS. So when I try to git push
to my server in a project that uses LFS, it will attempt the upload using HTTPS only, and it will obviously fail.
git push gitlab mybranch
fatal: unable to access 'https://git.myserver.com/coolguy/my-software.git/': gnutls_handshake() failed: Handshake failed
This is what my remote looks like:
git remote -v
gitlab git@git.myserver.com:coolguy/my-software (fetch)
gitlab git@git.myserver.com:coolguy/my-software (push)
Besides nuking the git history and creating a new repo without LFS (or reconfiguring my server, using a VPN, etc), is there anything else I can do in this situation? Does git/lfs support client certificates for HTTPS auth? I'm currently stuck with a private fork on my local machine that I can't git push
anywhere!
EDIT: Disregard the following, it turned out to be a bad apache config file, unrelated to git and gitlab
git push gitlab mybranch
Remote "gitlab" does not support the LFS locking API. Consider disabling it with:
$ git config lfs.https://git.myserver.com/coolguy/my-software.git/info/lfs.locksverify false
batch response: Post https://git.myserver.comcoolguy/my-software.git/info/lfs/objects/batch: dial tcp: lookup git.myserver.comcoolguy: no such host
batch response: Post https://git.myserver.comcoolguy/my-software.git/info/lfs/objects/batch: dial tcp: lookup git.myserver.comcoolguy: no such host
batch response: Post https://git.myserver.comcoolguy/my-software.git/info/lfs/objects/batch: dial tcp: lookup git.myserver.comcoolguy: no such host
batch response: Post https://git.myserver.comcoolguy/my-software.git/info/lfs/objects/batch: dial tcp: lookup git.myserver.comcoolguy: no such host
batch response: Post https://git.myserver.comcoolguy/my-software.git/info/lfs/objects/batch: dial tcp: lookup git.myserver.comcoolguy: no such host
batch response: Post https://git.myserver.comcoolguy/my-software.git/info/lfs/objects/batch: dial tcp: lookup git.myserver.comcoolguy: no such host
Notice how it's butchering the URL as git.myserver.comcoolguy
instead of git.myserver.com/coolguy
or git.myserver.com:coolguy
Thanks