How to move some files in Git history to LFS with a single command

Thongchai Kolyutsakul
2 min readMar 22, 2022

I’m assuming you already know what Git LFS is and have it set up already.

Today I have updated GoogleCast SDK in my project to 4.7.0 beta which has support for Apple Silicon simulators. I created a pull request and noticed that there is some binary files of size almost 20MB. So I and the team think it’s a good idea to put it in Git LFS.

--

--

Thongchai Kolyutsakul

iOS developer since 2009. Working @Viki in Singapore. I write about iOS development, Swift language, and general software engineers tips.