git-lfs | Git extension for versioning large files | Version Control System library
kandi X-RAY | git-lfs Summary
kandi X-RAY | git-lfs Summary
Git extension for versioning large files
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of git-lfs
git-lfs Key Features
git-lfs Examples and Code Snippets
Community Discussions
Trending Discussions on git-lfs
QUESTION
I recently upgraded all of my dependencies in package.json to the latest. I went from Angular 12.2.0 to 13.0.1 and github is now rejecting my push with the following file size error. Is there some setting I need to define in angular.json build profile that will help minimize these cache file sizes?
...ANSWER
Answered 2021-Nov-24 at 16:53Make sure your .gitignore
is in the parent folder of .angular
.
In that .gitignore
file, a simple .angular/cache/
should be enough to ignore that subfolder content.
Check it with:
QUESTION
I have a git repository (a Godot game project using GDScript) that I've been working on for quite a while and has about a thousand commits, pushed to GitHub.
I'm to start adding binary assets like image or sound files with Git LFS.
Looking at the git-lfs-migrate
docs I should probably migrate the local history to have some already existing png files converted too. Now, this looks like a significant change and I don't insist on shooting myself in the foot, so I'd like to know what is the best practice for this type of repository migration.
I'm the only one working on this repository so even sacrileges like force pushing is acceptable to me, as long as I don't lose my code and can convert my large files.
Clarification: Primarily I'm unsure about the possible consequences of migrating the local history or going without rewriting local history. Not sure what's the pros and cons are for these choices.
The reason why I'm considering Git LFS is that so far I've only been editing text files, but now I'm about to add a number of large binaries (images, sounds, data files), which will change during development, so not using LFS would be a waste. Ideally I'd only like to download the latest binaries when I'm cloning the repository to my various test environments.
...ANSWER
Answered 2022-Mar-27 at 09:55Finally I did not migrate anything, just installed git-lfs, then pushed the changes to the remote repository on GitHub. When I cloned the repository on my 2 other computers (a Linux and a Mac), not forgetting to install git-lfs there too, on both cases I received a weird error, complaining about "smudge filter lfs failed".
This SO answer was the solution: https://stackoverflow.com/a/48882513/63377
Essentially LFS didn't have a URL set and it was too timid to tell me. I had to run git config lfs.url $(git config remote.WHATEVER-MY-LFS-REMOTE-NAME-IS.url)
, then do another git pull
, and it all seems to be working.
QUESTION
- git version 2.32.0.windows.1
- TortoiseGit 2.13.0.1
- git config -l
- Diff Tool: BeyondCompare
ANSWER
Answered 2022-Mar-18 at 14:37As @torek stated out in the comments: the .gitattribute text settings caused the problem. We committed those modified files and everything went well after that.
QUESTION
How to install git-lfs
on an Amazon EC2 (Amazon Linux 2) instance?
Based on https://github.com/git-lfs/git-lfs/blob/main/INSTALLING.md did I tried:
...ANSWER
Answered 2022-Mar-13 at 11:38As described on packagecloud[1], you need to run:
QUESTION
I want to download a single LFS file from gitLab using c#. Currently I have the following:
...ANSWER
Answered 2022-Mar-08 at 20:53Use the repository files API. No special handling is needed for files that happen to use LFS. It's simply an HTTPS request to the endpoint.
You've already requested the information which should be contained in pkgResult
. The content of the file is in the response payload as content
encoded in base64.
Just extract the content
field from the deserialized JSON and base64 decode it to get the contents of the file.
QUESTION
We migrated a repository from a Gitea server to BitBucket. When we try to clone via HTTPS we get the following error:
Error downloading object: : Smudge error: Error downloading : Object does not exist on the server: [404] Object does not exist on the server.
I followed this SO answer and I can clone, but when I do the git lfs pull
I get a bunch of
[404] Object does not exist
I then tried setting the lfs.url value as in this answer and then a git lfs pull
results in
Repository or object not found: /objects/batch, Check that it exists and that you have proper access to it.
After that, I saw some posts about issues with LFS and HTTPS so I tried cloning with SSH. (created new SSH key, added it to BitBucket, etc) This resulted in
error: external filter 'git-lfs filter-process' failed, fatal: : smudge filter lfs failed, warning: Clone succeeded , but checkout failed.
I then tried running git lfs install --skip-smudge
and cloning again via SSH. This worked, again, but the files are not accessible and when I run git lfs pull
now I get the following message multiple times:
batch request: git@bitbucket.org: Permission denied (publickey).: exit status 255
How do I fix this?
...ANSWER
Answered 2022-Mar-07 at 19:48It appears Bitbucket's import tool does not import LFS objects. I ended up following the steps here to fix the problem (note that I updated step 9 to include origin
to fix an error).
First, create new a repo on Bitbucket and take note of the URL (or SSH endpoint) of the new repo. (I did not do this as I was fixing a repo I had already created)
In a terminal window, clone the existing project from GitHub:
QUESTION
I have a git-lfs repo with local changes and I want to discard them. I tried the following command without success:
git checkout file
git checkout -- file
git lfs checkout file
git reset --hard
What command should I use?
Thanks!
EDIT:
Viewing the modifications with gitk revealed that r/w attributes were changed for all files. Contents are identical.
...ANSWER
Answered 2022-Mar-02 at 23:59You probably manually set core.fileMode
to true
. Set it back to false
.
Viewing the modifications with gitk revealed that r/w attributes were changed for all files. Contents are identical.
QUESTION
I am trying to add files to my next git commit using
...ANSWER
Answered 2022-Feb-22 at 17:36If you're using Git for Windows 2.34 or later, then this is already fixed, and the warning here is no longer accurate. It's been disabled in newer versions of Git LFS when using Git for Windows 2.34 or newer. You can just ignore it if you have an updated version of Git.
Note that this is a Git problem; Git LFS handles these just fine, and any reasonably recent version should work with a suitably updated Git. Additionally, Git on Unix has never had this problem and should work just fine.
QUESTION
I'm trying to docker up a laravel application with laravel sail, but I get the following error for the sail container:
...ANSWER
Answered 2022-Feb-16 at 20:38Run the dos2unix command which changed many project files and it worked there.
QUESTION
Goal: git checkout -b newBranchName remotes/branchForRemote/main
to actually go into newBranchName
Hey all,
I started with an empty git repo, which I cloned from github.com
Then, git remote add [urlFromAnOpenSourceProject]
Then, git checkout -b newBranchName remotes/openSourceRepo/main
.
The command above only pulled the remotes/openSourceRepo/main
into my own main branch. How do I instead make it pull into another of my branches (not my main branch)?
Thanks!
Note: I have a workaround listed below but I would still like to know how to avoid needing to use this workaround.
My Workaround: Create/switch to a different branch, and then run the following commands
...ANSWER
Answered 2022-Feb-07 at 16:41What you're doing is about right. You just forgot a git fetch --all
or git fetch
.
So basically:
git clone https://github.com/
git remote add opensource
git fetch opensource
git checkout -b opensource/master
Without git fetch
, your git doesn't know which files/branches/tags your open source remote has in the first place.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install git-lfs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page