V
V
Valery2013-09-23 10:15:30
git
Valery, 2013-09-23 10:15:30

How to make Git and Dropbox friends?

Good afternoon,

There is a Git repository in the Dropbox folder.

When you simply save the file (do not change anything in the content) and have dropbox sync enabled, Git considers that the file has changed.
In diff, it shows that all lines have changed to themselves. As if I deleted and then created the file again. Pretty… uncomfortable.
In this case, the file is not marked as new, just all lines are minus and all lines are plus.

Is there any way to fix this besides temporarily stopping Dropbox?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
AxisPod, 2013-09-23
@AxisPod

I have normal git and dropbox friends, there are no problems, this situation has never appeared.

S
Semyon Prikhodko, 2013-09-23
@ababo

I have been working with such a bunch (Linux) for more than two years. No complaints.

V
VoidVolker, 2013-09-24
@VoidVolker

The point is to change the date of writing to the file. File date changed - git thinks the file has changed even if nothing in it has changed.

A
Alexander, 2013-09-23
@xel

If we agree, commit and do again ctrl+s does the effect repeat?
If it doesn't repeat, then it's probably just line ending characters or the indentation format changes.
I would try to save under a different name and compare in size and in hex form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question