How to revert specified file to before version? for examples:( the next line is latter time )
commitIDa create main.go and other operations
commitIDb modify main.go to content1 and other operations
...... (may be a lot of logs)
commitIDc modify main.go to content2 and other operations
commitIDd ??????(my demand is following:)
Now,I want the file main.go content to revert commitIDb ,and its log is only :
commitIDa
commitIDb
except for file main.go, other operations files may have the logs following:
commitIDa
commitIDb
...
commitIDc
commitIDd
In other words,I want to delete main.go log information from (...) and commitIDc
Then I can git push to the remote origin
reset-or-revert-a-specific-file-to-a-specific-revision-using-git could not works.And my question is different frrom it. Because it will commit new commitID, and its content is same with the before one.
The core difference of my question is : main.go logs is only commitIDa commitIDb ,no new commitID to be commited. In the other words, it delete about main.go logs from the logs which is after commitIDb