Report this

What is the reason for this report?

How Can I Remove a File from Git History Without Deleting It Locally?

Posted on August 29, 2024

I accidentally committed and pushed a large file to my Git repository that I don’t want to keep in the repository’s history. However, I still need the file to remain on my local machine.

Is there a way to remove the file from the Git history while keeping it intact on my local machine?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.