In the git history, I haven't been able to find a way to roll back to the latest commit (essentially a git reset --hard).
Here, the repo is dirty:
But rollback is greyed out:
I guess either adding a reset button to the repository modal or enabling the rollback for the latest version would suffice.