Edit the root commit in Git?
As of Git version 1.7.12, you may now use git rebase -i –root Documentation
As of Git version 1.7.12, you may now use git rebase -i –root Documentation
I actually once pushed with –force and .git repository and got scolded by Linus BIG TIME. In general this will create a lot of problems for other people. A simple answer is “Don’t do it”. I see others gave the recipe for doing so anyway, so I won’t repeat them here. But here is a … Read more
Since Git 1.7.9 you can also use git commit –amend –no-edit to get your result. Note that this will not include metadata from the other commit such as the timestamp or tag, which may or may not be important to you.
What you need to do is to create a new commit with the same details as the current HEAD commit, but with the parent as the previous version of HEAD. git reset –soft will move the branch pointer so that the next commit happens on top of a different commit from where the current branch … Read more