Wednesday, October 05, 2022

removing large files from git history

If large files have been committed by mistake, they add to extra file-transfers for every new git clone. So, followed this - 

https://www.baeldung.com/git-remove-file-commit-history#using-git-filter-repo

After that, needed
git remote add origin git@github.com:usrname/reponame.git
and
git push -f origin hn # push -f to force push
 

No comments:

Post a Comment