-1

Once there was a file that exceeds 100MB in my project and I committed it. After a long time and some other commits, I wanted to push to remote repository in github. However, I met the error "a file exceeds limited size of github(100MB) though I have deleted the file when I push.

I've seen some of the answers to similar problems, suggesting giving up recent commits. But this is not practical since there have been a lot of commits. Is there any better way?

Owen
  • 57
  • 3
  • 11

1 Answers1

0

try using an hard reset

use the command

git reset --hard

git rebase -i
Adeojo Emmanuel IMM
  • 2,104
  • 1
  • 19
  • 28