How to fix the story in the Gita?

There is a file in the repository

is the commit that was pavlel on this file

So this commit in addition to useful code came back and the Mat, which, of course, it is not advisable to leave in history.
And actually a question how do I get rid of this line with the Mat in history?

And of course the need to preserve the subsequent commits, because this Mat was not noticed, and remote already there are more new commits on top of that.
June 10th 19 at 14:48
2 answers
June 10th 19 at 14:50
Looks like exactly what you need. Thank you ) - Marisol commented on June 10th 19 at 14:53
June 10th 19 at 14:52
If you did just commit and push, and immediately wrote here, then take from the Mat file and make a commit and git push --force HEAD
The fact of the problem is that there are already other commits that started after that ) - Marisol commented on June 10th 19 at 14:55

Find more questions by tags Git