Currently I have
- Empty GitHub repo
- SSH server repo (main)
- Local Repo
SSH server repo was the most up-to-date repo (production site) so I did a Git clone from there to local. I then tried to do a git push
to GitHub.
Everything went OK but then it said something about filename.gz being too large for GitHub. I didn't need this file so I ran several Git commands to get rid of it from Git cache then pushed back to SSH server.
I don't see the large file locally but it's still on SSH server even though git diff
returns nothing and git push returns "Everything is up-to-date" - And even though the file is not visible in local repo when I try to push to GitHub I still get error about it
remote: error: File fpss.tar.gz is 135.17 MB; this exceeds GitHub's file size limit of 100 MB
I followed steps under "fixing the problem" listed on GitHub help so shouldn't that have been enough?
How is the file still in the ether when it's not local or listed in git status/diff/push?
git log -- the_big_file
is returning you anything, then the file is still in the history. – Vaudoisgit push
say everything is up-to-date? Since you changed history, it should have complained that the push is not possible and that you would have to force it. – Vaudoismaster
branch for example, you can cherry-pick all of them and apply to the github branch. (not sure if merge would work, but if it could, then that would be even better) – Vaudois