我有一个Rails服务器,其上运行着开发和生产环境。我最近创建了一个基于开发代码的远程GitHub存储库,现在我想将该代码部署到生产中。
我认为使用git克隆可以做到这一点,但这给出了:
fatal: destination path already exists and is not an empty directory.
目标目录确实是存在的,并且是非空的,因为我的(当前非托管的)生产代码就在那里。我认为使用git克隆将允许我在生产环境中编写我的主代码。我有什么不明白的?
我有一个遥控器和一个本地的git存储库。
本地存储库是从远程克隆的。
当我修改本地存储库并提交到主分支时。
然后,我将"git push“运行到远程存储库。
但是它失败了,并输出了下面的msg。
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make