git - Remove a large file from GitHub repo -


this question has answer here:

i trying push local repo private github , got error saying file size exceeded 100mb. understand. don't need file, deleted if repository (actually deleted computer).

when went push repository again (without large file since had been deleted) same error file deleted computer. added gitignore file.

not sure why file still causing issues has been deleted computer.

since have committed large file, in git history, , deleting not - git keeps should ever want rewind commit.

what need rewrite history. easiest way kill last commit is:

git reset --hard head~ 

if not last commit, may need kill more, or use git filter-branch. can find more rewriting history in git documentation.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -