Just add an explicit exclude for .git:
rsync -a --exclude='.git/' --include='*.c' --include='*.sh' --include='*/' --exclude='*' ~/c/ ~/Dropbox/Public/c
Another option is to create
~/.cvsignore
containing the following line along with any other directories you'd like to exclude:.git/
No comments:
Post a Comment