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 A
git checkout -b fix
- edit
git add files
git commit --amend
git rebase fix master