Note that there are some explanatory texts on larger screens.

plurals
  1. POUnsync'd Git Repository in Dropbox
    text
    copied!<p>I have a git repository (and working directory) that is stored in my Dropbox so I can move back and forth between computers without having to commit or stash (read: without any effort at all). This is working great except for one minor annoyance that is becoming a major annoyance.</p> <p>Every so often, I'll leave one computer in a fully committed state only to pick up on the other computer and find that a <code>git status</code> reports changes. Inevitably, those changes are related to permissions. What I'm not sure about is <em>why</em>? I assumed that it might be related to how Dropbox writes files on sync'd computers, but the <code>umask</code> on both systems is set to 0002. I would assume that value dictates the mode of files written/updated by Dropbox, but it wouldn't be the first time I'd be wrong.</p> <p>I know I can just tell Git to ignore the file mode, but that's just masking the problem. I'd really like to understand it so I can make an informed decision of how to proceed.</p> <p>Thanks.</p> <p><strong>UPDATE</strong></p> <p>So here's a pretty decent representative example of a repository getting out of sync even though it's entirely contained within Dropbox. As we speak, my personal laptop is reporting a clean working directory for one of my projects:</p> <pre><code>$ git status # On branch develop nothing to commit (working directory clean) </code></pre> <p>My work laptop, though, reports a number of <em>untracked</em> files. Let me say that again: <em><strong>untracked</strong></em> files.</p> <pre><code>$ git status # On branch develop # Untracked files: # (use "git add &lt;file&gt;..." to include in what will be committed) # # html/cake/console/libs/templates/ # ...4 more files... # html/cake/tests/test_app/plugins/test_plugin/views/themed/ nothing added to commit but untracked files present (use "git add" to track) </code></pre> <p>How can that be? My <code>~/.gitignore</code> file is also shared across both machines (not that any of these paths are excluded in an ignore file). Is there another component of Git--or maybe Dropbox--that could be in play here?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload