How to Undo the Last Git Commit That Has Not Yet Been Pushed!

Опубликовано: 17 Апрель 2026
на канале: Afro Boy Techs (ABT)
24
0

In this video, let's learn how to undo git add & git commit with git reset.

The commands;

To undo git commit
git reset --soft HEAD~1

To undo git add .
git restore --staged file_name

More Info;
Blog: incoming..

Let's connect:
GitHub: http://github.com/Ronlin1
Twitter: https://twitter.com/AfroBoyUg
Portfolio: https://linktr.ee/Atuhaire