Git reset branch. Git head. head first. git. лучший способ понять git изнутри.