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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -