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

后端 未结 13 2710
没有蜡笔的小新
没有蜡笔的小新 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.

    0 讨论(0)
提交回复
热议问题