Android Studio 代码回退

1、VCS–Local History–Show History
或者
image.png
这个按钮
2、代码操作记录出现了,选定我们操作的一个历史阶段
3、点击左上角的按钮(revert),代码回退成功

The one who wants to wear the crown, bears the crown.
原文地址:https://www.cnblogs.com/catherineliu/p/13048327.html