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