nic@pype ~/git-ammend-no-edit
infra · automation · writing
role: Disciple · Husband · Father · Developer

Git ammend to a commit

After carefully staging only lines related to a specific change and comitting I suddenly realized I missed one... darn, what do I do?

Old me would have soft reset my branch to the previous commit and redone all my careful staging... what a PIA...

New me (credit: ThePrimeagen)...


# stage other changes I missed
git commit --amend --no-edit