Let's say I have git commit history like this(newer -> older):
C -> B -> A
after C's commit, I came to realize that there is something wrong with A.Maybe a test case which is suppose to be in that commit,but actually it wasn't there. So how can I deal with this situation? Make a new commit and melt it into A?how?
Problem solved:
git checkout Agit checkout -b fix- edit
git add filesgit commit --amendgit rebase fix master