还原.orig文件的简单方法? [英] Simple way to revert .orig files?

查看:87
本文介绍了还原.orig文件的简单方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I've just gone and accidentally run hg revert *. Does Mercurial come with a tool to move all the .orig files back into place?

推荐答案

否.如果您对bash感兴趣,可以随时这样做:

No. If you're in bash you can always do:

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

这篇关于还原.orig文件的简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆