hot to do restage of a repository to make the current master code example Example: how to undo commit git reset <commitId> # Exemple git reset 5310517