How to retroactively add commits to a Git repository?
问题 I am creating a module that ports a third party lib to another platform. The version of my module matches the version of the lib that it wraps. For the purposes of this question, let's say that the lib is on version 10, therefore my module is also on version 10. Git refs look like this: master === HEAD === v10 (tag) However, for compatibility reasons, I wish to create versions 8 and 9 of the wrapper as well. If I commit v9 , it will become the new HEAD , but I want HEAD to stay on v10 . I