Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I found that I can use:

ignore.default = \A#.*\Z
                 \A.*~\Z
                 \A.*\.py[oc]\Z
                 \A.*\.sw[nopx]\Z
                 \A.*\.swpx\Z
                 \A\..*\.tmp\Z
                 \A.*\.git\Z

In /etc/xdg/ubuntuone/syncdaemon.conf to ignore files. I'm not really up on regex so I tried to add the last line to ignore the .git folder. It doesn't appear to be working though. Anyone have a correct solution?

share|improve this question
    
    
This question is not about how to ignore files/folders, I know that. This question is more specifically about the regex required to ignore the .git folder. –  greggory.hz Apr 1 '11 at 19:30

1 Answer 1

up vote 2 down vote accepted

A friend of mine suggested \A.git\Z for the .git folder. It seems to work effectively. The end result was the following ignore.default in /etc/xdg/ubuntuone/syncdaemon.conf:

ignore.default = \A#.*\Z
                 \A.*~\Z
                 \A.*\.py[oc]\Z
                 \A.*\.sw[nopx]\Z
                 \A.*\.swpx\Z
                 \A\..*\.tmp\Z
                 \A\.git\Z
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.