Failing to push to Github (this exceeds GitHub's file size limit)

有些话、适合烂在心里 提交于 2019-11-29 10:43:31

I think that you have a commit with this file. Even if you delete the file and make a new commit, the file is persisted in a previous commit. And git push send all the missing commits to the remote.

You have to rewrite git history before pushing it. Without a git log, I can't help you with an exact command. Squashing Commits can do the job.

I fixed this issue by the following:

  1. git stash
  2. git rebase -i
  3. Then a text editor popped up and allowed me to write the term, "drop" next to the commit I needed to delete. The commit was deleted successfully.
  4. git push
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!