Modifying incorrect files

git rebase and git reset are your friends on this kind of situation, check this related post:

1 Like