You can see it in action here:
See this page on updating:
https://github.com/RetroPie/RetroPie-Setup/wiki/Updating-RetroPie
You’ll either want to do a full binary install or just start from a fresh 3.5 image.
https://github.com/RetroPie/RetroPie-Setup/wiki/First-Installation