Rsync notes

From raju

ignore .git directory and .gitignore

Add this to the rsync command

    --exclude='.git/' --exclude='.gitignore
    

For example

    $ rsync -n -prltvzD --exclude='.git/' --exclude='.gitignore' foo_dir user@destition:/path/to/foo/parent
    

Ref:-

tags | copy directory from one machine to another.