user3399101
user3399101

Reputation: 1537

How to remove files from git commit history?

I've tried

git rm --cached

which didn't work, I've heard I could possibly do this using git rm * but there seems to be some batching issues with that.

I have AWS keys in my commit history that I'd like to remove ASAP.

If I could remove all of my git commit history and just push up the app in it's current form with no commit history that would be great.

Upvotes: 1

Views: 219

Answers (1)

TheIrishGuy
TheIrishGuy

Reputation: 2573

Straight from the documentation. Remove Sensitive Data

Upvotes: 1

Related Questions