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

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

    Alternatives:

    git ls-files -zi --exclude-standard |rsync -0 --exclude-from=- ...

    git ls-files -zi --exclude-per-directory=".gitignore" |...

    (rsync only partly understands .gitignore)

提交回复
热议问题