Create this bash file to clone your repository excluding .git, etc. directory or files. #!/usr/bin/bash ROOT_DIR="/Users/username/Documents/" rsync -avzh --delete $ROOT_DIR"/project1/" $ROOT_DIR"/project2" --exclude '.git' --exclude 'README.md' --exclude 'LICENSE' --exclude '.gitignore' echo "Done!"
Possible solutions of Impossible problem. Out-of-the-box Ideas. Amazing notes. Unbelievable facts. Simple & easy to follow tips and procedures.