Questions tagged [git-lfs-migrate]

33 questions
1
vote
2 answers

Why does the number of commits increase after git lfs migrate?

I tried running git lfs migrate import --everything --include="*.dll" on a large repository. Before I ran this there were about 70k commits. After running the migration (and expiring reflog and pruning etc) git rev-list --all --count shows around…
DeCaf
  • 6,026
  • 1
  • 29
  • 51
1
vote
1 answer

How to transfer a git repository with LFS file to another repository?

We have a local git server, with LFS files. We are planning to move everything on MS Azure DevOps. After some research, I read that it was advise to do a "mirror" clone, to have everything(tags at least): git clone --mirror Then, since I've some…
J4N
  • 19,480
  • 39
  • 187
  • 340
1
vote
1 answer

How can you migrate between Git LFS Repositories

I have an existing repo with git-lfs enabled (at GitHub) and 1GB of files in it. For bandwidth reasons, I want to stop using GitHub and start using a LFS repo hosted on the corporate network. Does anyone know how to migrate between git lfs repos? I…
Alex
  • 2,953
  • 1
  • 27
  • 37
1
vote
1 answer

Gradually converting a repo to use git-lfs for certain files. One file at a time

We have a repo that is high value and expensive to disrupt. It also has large XML files that cause significant problems when using a webapp for merges and git log history. In addition it is likely making our CI/CD inefficient. In other words ... the…
David West
  • 2,256
  • 6
  • 32
  • 62
1
vote
1 answer

How do I push all branches to a new remote after commit history rewrite?

I have reviewed many existing pages on SO about this subject and none of the solutions works. I am running git lfs migrate on an existing repository with 80,000+ commits, and thousands of tickets and pullrequests. git lfs migrate rewrites commit…
reka18
  • 7,440
  • 5
  • 16
  • 37
0
votes
0 answers

I have initialized git LFS in my repo and added extensions in the gitattribute for it to track but the size is still not reducing, what do I do?

My bit bucket repository has exceeded the** 4GB limit** so I initialized git LFS in my repo and added **extensions **in the gitattribute for it to track but the size only reduced by a few MB so I created another repo and copied the codes from the…
0
votes
1 answer

How to Add GIT LFS to existing repo with multiple branches?

There are tons of documentations about adding GIT LFS to a new REPO. But what if I have an existing Repo with mutlitple Branches like main, dev, featurex12? (Info: There are currently no Large Files in my Repo) Do I still work on the dev branch and…
Hans Vader
  • 183
  • 10
0
votes
1 answer

git lfs push is throwing "RPC failed" error

I am trying to migrate the repository from TFVC to Git with History of 4 months which is a huge data. I am using git tfs to clone it from a branch of a repo from TFVC to my local and trying to push it to a empty Git repository by enabling git lfs to…
0
votes
1 answer

git lfs migrate for existing files in remote

Recently, I enabled git lfs for my gitlab project while checking in a 200 MB file. And this I could successfully and verify that in remote this new 200 MB file shows LFS. In the past I had checked-in few 10 MB files without lfs. Those exist in…
soumeng78
  • 600
  • 7
  • 12
0
votes
1 answer

Change file in Git from Git LFS to a normal Git file

I am trying to remove a .txt file that was being previously added as Git LFS. In efforts to do so, I tried the following: git lfs untrack "*.txt" git add "*.txt" And pushed changes. Still pushes files as LFS. When I do git lfs uninstall, I get the…
Krishna
  • 115
  • 6
0
votes
2 answers

GitLFS migration with partial push

I am trying to migrate history for a repo with large files (>100mb) into GitHub with the following command : git lfs migrate import --include="*.gif" git push origin master --force Uploading LFS objects is successful. I get the following…
0
votes
0 answers

Git LFS migrate does not leave original files in working copy

I'm using Git 2.38.0.windows.1 on Windows with git-lfs/3.2.0 (GitHub; windows amd64; go 1.18.2). I haven't used Git LFS in a while. I have a repository hosted in GitHub with some large PNGs. I wanted to start storing the PNGs in LFS. I already had…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
0
votes
0 answers

Unable to deactivate GIT LFS on Windows

We have a repo on GitHub.com and I enabled git LFS on my Mac, rewrote the history with git lfs migrate and pushed the code. So far so good. After a few weeks we exceeded the Github's "Free" LFS quota (which is 1GB) and I tried to reverse the LFS…
Felipe Esteves
  • 363
  • 1
  • 10
0
votes
1 answer

git lfs migrate info outputs Git can't resolve ref: "HEAD"

I'm trying to migrate a git repository to Git LFS. I already installed Git LFS with git lfs install. But when I'm executing git lfs migrate info I get the following output (with GIT_TRACE enabled): > git lfs migrate info 13:10:41.420197 git.c:703 …
Toboxos
  • 170
  • 9
0
votes
0 answers

GitHub, Git-LFS and Azure

I have an existing repository on GitHub into which I need to push a file of >1.5Gb. I found git-lfs as a solution. But before implementing I need to clarify a few things. Will the repository be still on GitHub or will I need to migrate to…