annullare i cambiamenti git

C++
Git reset –hard <codice del commit>
Source

Also in C++: