exit git commit? March 8, 2022 by Anirban Share via: Facebook Twitter LinkedIn Mix More I want to delete or remove last commit in Git | Git Questions Typing :wq and pressing enter should do it, i.e. save the commit message and exit. Git Tutorial – 4 – Commit Share via: Facebook Twitter LinkedIn Mix More