Skip to content

Instantly share code, notes, and snippets.

@maltoze
Created November 13, 2019 04:17
Show Gist options
  • Save maltoze/9001ce0cb51c379168216c4b62b4ca98 to your computer and use it in GitHub Desktop.
Save maltoze/9001ce0cb51c379168216c4b62b4ca98 to your computer and use it in GitHub Desktop.
rsync exclude .gitignore files
git -C superset ls-files --exclude-standard -oi --directory > .git/ignores.tmp && echo.git/ignores.tmp
rsync -azP --delete --exclude-from .git/ignores.tmp SRC DEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment