I accidentally committed and pushed a big bitmap (35MB) which I forgot to delete from my project’s directory and which turns out to be totally useless. Is that something I should worry about?
Since that time I haven’t pushed nor committed anything. Also nobody pulled it. What are my options to fix this commit? Is it necessary/recommended?
If you know that nobody has pulled from the repository, that suggests that you’re in good communication with everyone who might be pulling from the repository. In that case, I would be inclined to rewrite history to remove that file – it’s annoying to bloat everyone’s repositories by 35MB for no good reason. You can do that by telling your colleagues not to touch the repository, resetting to the last-but-one commit as soon as possible, and then force-pushing your reset branch. You’ve said that your most recent commit was the one that included the bitmap, so (assuming you’re in the
masterbranch, and pushing tomasterinorigin) you can do the following:Then you can carry on as before, this time being careful not to stage the large bitmap 🙂