Git - Remove old commit information from a git repository to save space
Table of Contents
Git - Remove old commit information from a git repository to save space
You could always just delete .git and do a fresh git init with one initial commit. This will, of course, remove all commit history.
move .git /somewhere/else;
git init;
git add .;
git commit -m "initial commit";
git add origin [repoUrl];
git push origin --force