Skip to content

Instantly share code, notes, and snippets.

View SeLub's full-sized avatar
🎯
Focusing

Sergey Lubimov SeLub

🎯
Focusing
View GitHub Profile
@SeLub
SeLub / gist:f3d61ae628d500e022f28822ad611127
Last active February 8, 2024 06:23
Remove or recover last commit pushed to git

Delete last commit from git

First way

git reset --hard HEAD~1
git push --force

Another way