Gitlab:将存储库的本地副本还原为云上代码的当前版本

Gitlab: revert the local copy of a repository to the current version fo the code on the cloud

我的本地存储库有问题,我还没有推送它。现在,我想恢复实际在我的云中的版本。我发现了一些类似的问题和解决方案(如 this),但我想要的不仅仅是暂时切换回我的云版本,我希望它在我的本地存储库中完全恢复。

感谢您的帮助。

为了恢复本地分支中所有未提交的更改

git reset --hard HEAD