Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. – gregghz Apr 1 '11 at 19:30
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.