gpt4 book ai didi

mercurial - 恢复 .orig 文件的简单方法?

转载 作者:行者123 更新时间:2023-12-02 19:58:09 27 4
gpt4 key购买 nike

我刚刚不小心运行了hg revert *。 Mercurial 是否提供了将所有 .orig 文件移回原位的工具?

最佳答案

没有。如果你在 bash 中,你总是可以这样做:

for thefile in *.orig ; do cp -v $thefile ${thefile%%.orig} ; done

关于mercurial - 恢复 .orig 文件的简单方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4464585/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com