Git reset branch. Терминал git. git reset hard. git checkout. git откатить коммит rebase.