rsync exclude according to .gitignore & .hgignore & svn:ignore like --filter=:C

后端 未结 13 2829
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 17:22

Rsync includes a nifty option --cvs-exclude to “ignore files in the same way CVS does”, but CVS has been obsolete for years. Is there any way to make it also ex

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-22 18:07

    how about rsync --exclude-from='path/.gitignore' --exclude-from='path/myignore.txt' source destination?
    It worked for me.
    I believe you can have more --exclude-from parameters too.

提交回复
热议问题