【发布时间】:2011-07-05 20:37:26
【问题描述】:
我有两个盒子,一个是我的本地机器,另一个是我的开发服务器。现在我正在使用 Git 测试this method of deploying apps
我设置了我的本地存储库,添加了文件然后提交。我在 Windows 7 上,我的服务器是 Windows Server 2008。
服务器映射为 W:\ 驱动器,我的“裸”存储库和目标“模拟”生产文件夹作为子文件夹。 - 我可以很好地访问每个,没有连接问题。
这是我设置所有内容的方法:
本地目录 git remote add origin w:\gitCentral
本地目录 git push origin master
键入 C:,然后键入 CD testDeployment
-
现在我在我的测试文件夹中。
A.我做 git clone w:/gitCentral
Cloning into gitCentral... done.error: refs/remotes/origin/master doesnot point to a valid object! error:Trying to write ref refs/heads/masterwith nonexistant object 559e216584506e14ebef1121059e9461a86dd4f8 fatal:Cannot update the ref 'HEAD'.
【问题讨论】:
-
我没有给你答案,但我建议尽可能多地添加标签,因为更多人会看到你的问题。尝试使用 git、error、repository、clone 和 deploy 等标签。更多标签将获得更多浏览量,获得实际答案的机会更高!祝你好运:)
-
@Joshua:请鼓励人们添加所有相关标签。 “最大可能”的措辞可能导致标签滥用
标签: git windows-7 corruption git-clone