-
A super cool way to ignore the node_modules and other files that you don't want to copy is using the next rsync command rsync -vhra /source/project/ /destination/project/ --include='**.gitignore' --exclude='/.git' --filter=':- .gitignore' --delete-after @aleixmorgadas/1475929038673821707
-
It uses the .gitignore to not copy those folders in the target directory. Awesome!