简体   繁体   中英

Checkout git repo from Dropbox

EDIT

Sorry I forgot about this question. It turns out, he had added the repository incorrectly. We have everything working now and are finding this to be a FANTASTIC way to use Git for free.

END EDIT

Using this link I have been setting up Dropbox with Git repos for a bit just for fun, but have never had to share them with anyone else. Now I am sharing one and I can't quite figure out how to get it working as a full git repository for us.
I have shared the Dropbox.git folder with him and he has access to it, and using git checkout /path/to/dropbox/folder he can get the full directory....but any changes he makes are not coming across.
We added a single file to the folder and did git add test.txt and git commit -m 'Test Commit' and git push origin master and it said it pushed the changes. However, on my machine when I do git pull origin master it tells me there are no changes.

If I do git branch -a on my directory I see:

* master
remotes/origin/master

but on his directory we see:

*master
remotes/origin/HEAD -> origin/master
remotes/origin/master

Where did I screw up on this?

Are there any Dropbox conflicted files in your.git folder under Dropbox? I've tried to share git repositories this way and inevitably one or more of the git blobs inside the repository get into a conflicted state with Dropbox. What can be confusing about this is Dropbox will then choose one of the files to use and create a copy of the other that is named differently. This will then cause any changes to the conflicted version to seemingly disappear from the repository.

Answer posted as Edit on question:

Sorry I forgot about this question. It turns out, he had added the repository incorrectly. We have everything working now and are finding this to be a FANTASTIC way to use Git for free.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM