我有两个盒子,一个是我的本地机器,另一个是我的开发服务器。现在我正在测试这种使用 Git部署应用程序的方法
我设置了本地存储库,添加了文件然后提交。我在 Windows 7 上,我的服务器是 Windows Server 2008。
服务器映射为 W:\ Drive,我的“裸”存储库和我的目标“模拟”生产文件夹作为子文件夹。- 我可以很好地访问每个,没有连接问题。
这是我为设置所有内容所做的:
本地目录 git 远程添加原点 w:\gitCentral
本地目录 git push origin master
键入 C:,然后键入 CD testDeployment
现在我在我的测试文件夹中。
A. 我做 git clone w:/gitCentral
Cloning into gitCentral... done.
error: refs/remotes/origin/master does
not point to a valid object! error:
Trying to write ref refs/heads/master
with nonexistant object 559e2165845
06e14ebef1121059e9461a86dd4f8 fatal:
Cannot update the ref 'HEAD'.