git-lfs

GitLab to GitHub migration fails due to file size limit of 100.00 MB

限于喜欢 提交于 2020-08-09 09:06:45
问题 I am trying to Migrate one repository from GitLab to GitHub. The repository size is 685.83MB and it consists of few .dat,.csv,.exe,.pkl files which are more than 100MB to 3383.40 MB. it is failing with below errors. GitLab To GitHub Migration Steps:- $ git clone --mirror git@your-gitlab-site.com:test/my-repo.git $ cd ~/my-repo.git $ git remote set-url --push origin git@github.com:test/my-repo.git $ git push Error remote: error: GH001: Large files detected. You may want to try Git Large File

Disable Git LFS for a remote

梦想与她 提交于 2020-07-16 16:12:04
问题 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 ? 回答1: The workaround given by amiuhle works fine for me: git push --no-verify 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. 来源: https://stackoverflow.com/questions/36626793/disable-git-lfs-for-a-remote

Disable Git LFS for a remote

房东的猫 提交于 2020-07-16 16:10:09
问题 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 ? 回答1: The workaround given by amiuhle works fine for me: git push --no-verify 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. 来源: https://stackoverflow.com/questions/36626793/disable-git-lfs-for-a-remote

How to convert a file tracked by git to git-lfs?

江枫思渺然 提交于 2020-06-25 10:23:18
问题 How do I convert a single file (e.g. a png) which is already committed as a regular object to git-lfs? I do not want to migrate the whole repo and I also do not want to rewrite the history of the repo. 回答1: git lfs track will begin tracking a new file or an existing file that is already checked in to your repository. When you run git lfs track and then commit that change, it will update the file, replacing it with the LFS pointer contents. Here I have a repository with a PNG checked in

Configure Gerrit with Git LFS examples please

旧时模样 提交于 2020-06-12 05:33:42
问题 Could someone please provide examples of how you configured Gerrit to work with Git LFS? I understand that $GERRIT_SITE/etc/gerrit.config must be modified (I'd appreciate a good example here). On top of that, I think that each project (Git repo) requires configuration, but I'm not sure if that is done through the command line or via entries in other configuration files. Thanks in advance. 回答1: 1) Install Plugin 2) Configure GERRIT-SITE/etc/lfs.config [storage] backend = fs directory = xxxxx <

Configure Gerrit with Git LFS examples please

独自空忆成欢 提交于 2020-06-12 05:33:12
问题 Could someone please provide examples of how you configured Gerrit to work with Git LFS? I understand that $GERRIT_SITE/etc/gerrit.config must be modified (I'd appreciate a good example here). On top of that, I think that each project (Git repo) requires configuration, but I'm not sure if that is done through the command line or via entries in other configuration files. Thanks in advance. 回答1: 1) Install Plugin 2) Configure GERRIT-SITE/etc/lfs.config [storage] backend = fs directory = xxxxx <