Inf*_*nd' 7 windows terminal command-line undo
如果我做了一些重大更改,例如重命名某些文件等,我该如何回滚更改?
是否有执行此操作的命令?
不,命令行没有撤消这样的内置操作。
但是,您可以浏览过去的命令,up & down arrows
如果该命令是非破坏性的(复制、移动、重命名等),您可以手动反转它的效果(通过删除复制的文件,将文件移回原始位置或使用重命名交换文件参数)。
在某些版本的 Windows 中,有诸如“卷影复制”之类的功能:
http://en.wikipedia.org/wiki/Shadow_Copy
Shadow Copy (Volume Snapshot Service or Volume Shadow copy Service or VSS ),
is a technology included in Microsoft Windows that allows taking manual or
automatic backup copies or snapshots of data...
Run Code Online (Sandbox Code Playgroud)
通过启用该服务,您可以回到过去(在某种程度上)。除此之外:正如贾瓦回答的那样,没有撤消的机会。