git-lfs

GIT: Unable to delete file from repo

时间秒杀一切 提交于 2021-02-10 06:57:12
问题 Currently, we are forced to migrate our repository from Gitlab to Github. When we want to push our repo to Github with "git push -u origin master". Unfortunately, this results in the following errors (Copied Output 1): remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. remote: error: File Data/Setup/Database.2.7.0.1.accdb is 426.50 MB; this exceeds GitHub Enterprise's file size limit of 200.00 MB remote: error: File Data/DPM

Get old revision of a git-lfs file

元气小坏坏 提交于 2021-01-28 18:54:40
问题 Kinda like how I can do git cat-file blob <object-hash> and get the file's raw data, I would like to get an old revision of a file tracked by LFS, so that I can save it somewhere. How would I do that. 回答1: Found it: git lfs cat-file blob <sha> | git lfs smudge 来源: https://stackoverflow.com/questions/54367756/get-old-revision-of-a-git-lfs-file

Git clone from local repo with LFS

元气小坏坏 提交于 2021-01-28 01:48:45
问题 I have a local git repo, with LFS enabled. I often need to clone it somewhere else on the same drive. While copy-pasting the repo would do exactly what I want, I face some issue doing this with git itself : cd C:\wrkfldr\SUBDIR git clone "C:\wrkfldr\LOCAL_REPO\.git" Returns Cloning into 'LOCAL_REPO'... done. Downloading BIG_LFS_FILE.xlsm (6.4 MB) Error downloading object: BIG_LFS_FILE.xlsm (01d6d9b): Smudge error: Error downloading BIG_LFS_FILE.xlsm

Authentication Failure using Git-LFS Azure DevOps Pipeline

巧了我就是萌 提交于 2021-01-27 13:23:16
问题 I'm getting the following Authentication failure attempting to checkout a repository with git-lfs support in an Azure Devops Pipeline: ##[command]git -c http.<url>="AUTHORIZATION: bearer ***" lfs fetch origin 8d51d72484c1b19a2427ed9f7736d410e43a8a29 fetch: Fetching reference 8d51d72484c1b19a2427ed9f7736d410e43a8a29 fatal: could not read Password for '<url>': terminal prompts disabled batch response: Git credentials for <url> not found. error: failed to fetch some objects from '<url>/info/lfs'

Difference between git-lfs env Endpoint and LfsStorageDir?

眉间皱痕 提交于 2020-12-15 06:26:31
问题 I think I get the mechanics of lfs and its method of tracking the binary files via pointers and only cloning data as needed but I cannot get a solid confirmation where lfs is storing the bulk data. In my case I suspect lfs is keeping the data local because my github repository is tiny (175KB!) relative to the project (Source+Config:72KB, Content:140.7MB) and the local .git directory is much larger (1.2GB). When I run git lfs env I get the following (left out the bulk of the report, showing