Move only source code and required inputs
Transfer the project with rsync or SFTP. Exclude DerivedData, temporary build directories, and regenerable caches; keep lockfiles, test assets, and project settings.
Check:Compare the commit ID and checksums for key files, then verify the working directory, permissions, and free disk space. Use a dry run first to review the changes.
rsync -azn \
--exclude 'DerivedData/' \
--exclude 'build/' \
./project/ \
"$MAC_HOST:~/work/project/"
After reviewing the dry-run results, remove n.MAC_HOST is the SSH connection alias provided with your machine. This example does not delete files already on the remote host.