My code
rsync -exclude='.gitconfig' -exclude='*~' -exclude='.DS_Store' /Users/Masi/bin/ /Users/Masi/gitHub/dvorak/
I run it. It copies the .DS_Store to the destination folder although it should not.
This suggests me that the first exclusion do not work. It seems to be hard-coded in Git's default ignore -file to ignore .gitconfig.
How can you avoid the coping of .DS_Store?