Posts

Showing posts from August, 2026

Right reset branch (clean history commits after some specific commit)

git reset  -- hard <SHA1>   git push origin <branch-name> --force-with-lease        or just git push --force-with-lease  --force-with-lease         -->      don't let us overwrite somebody's else dev's commits