禁用Git LFS进行远程 [英] Disable Git LFS for a remote

查看:549
本文介绍了禁用Git LFS进行远程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试推送到另一个不支持Git LFS的遥控器.是否可以使用git config禁用特定远程设备的Git LFS?

I'm trying to push to a second remote that doesn't support Git LFS. Is there a way to disable Git LFS for a specific remote using git config?

推荐答案

amiuhle提供的解决方法对我来说很好:

The workaround given by amiuhle works fine for me:

git push --no-verify

它防止git lfs的预推钩子尝试上载文件.因此,提交了链接文件,但缺少实际的二进制文件.

It prevents the pre-push hook of git lfs from trying to upload the files. So link-files are committed, but the actual binaries are missing.

这篇关于禁用Git LFS进行远程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆