How to automatically remove all .orig files in Mercurial working tree?

后端 未结 12 681
刺人心
刺人心 2020-12-13 08:34

During merges mercurial leaves .orig file for any unresolved file. But after manually resolving problems and marking a file correct it does not delete the .orig file. Can it

12条回答
  •  误落风尘
    2020-12-13 08:56

    I don't like the chosen answer. It doesn't removed everything within all levels of the project. I use this:

    for f in `find . | grep .orig$`; do rm "$f"; done
    

    Works on both Mac and *nix

提交回复
热议问题