简体   繁体   English

从 Dropbox 签出 git 存储库

[英]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.我们现在一切正常,并且发现这是免费使用 Git 的绝佳方式。

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.使用此链接,我一直在使用 Git 存储库设置 Dropbox,只是为了好玩,但从未与其他人分享它们。 Now I am sharing one and I can't quite figure out how to get it working as a full git repository for us.现在我正在分享一个,但我不知道如何让它作为一个完整的 git 存储库为我们工作。
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.我已经与他共享了 Dropbox.git 文件夹,他可以访问它,并且使用git checkout /path/to/dropbox/folder他可以获得完整的目录......但他所做的任何更改都没有发生。
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.我们在文件夹中添加了一个文件,并且git add test.txtgit commit -m 'Test Commit'git push origin master并说它推送了更改。 However, on my machine when I do git pull origin master it tells me there are no changes.但是,在我的机器上,当我执行git pull origin master时,它告诉我没有任何变化。

If I do git branch -a on my directory I see:如果我在我的目录上执行git branch -a我会看到:

* 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? Dropbox 下的.git 文件夹中是否有任何 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.我尝试以这种方式共享 git 存储库,并且不可避免地,存储库中的一个或多个 git blob 会与 Dropbox 发生冲突的 state。 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.令人困惑的是,Dropbox 会选择其中一个文件来使用并创建另一个名称不同的副本。 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.我们现在一切正常,并且发现这是免费使用 Git 的绝佳方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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