Open a previous commit (move files back to the staging) git reset --soft HEAD^ or git reset --soft HEAD~1 And, do whatever you want. Split in multiple commits or reset the file like described on the source. Source