Editing the Last Commit
If not all the changes should go into the commit, we can do a Mixed
reset to the previous commit and redo the commit with only the wanted changes.

Commandl line:
git reset HEAD~
# add only the wanted file
# or use interactive add to add some portions of the file
git add awesome_changes.txt
git commit
Last updated
Was this helpful?