Rename your existing Web directory, and create a new Git project by the same name by cloning your bare repository.
重新命名现有的Web目录,并通过复制裸存储库使用相同的名称新建一个Git项目。
In a bare repository, it won't fetch you any useful information and is not advisable to run any direct operation in it.
在裸存储库,它不会获取任何有用的信息,不建议任何直接操作。
At this point, you or any other developer can clone the bare repository on your Web server and begin working on your Web site.
现在,您或任何开发人员可以在Web服务器上复制裸存储库并开始处理您的网站。
Coming to you errors you faced, I could reproduce it at my end when I cloned a bare repository and had not created any branch in it.
来你面对错误,我可以复制它在我结束当我克隆一个裸存储库和没有创建任何分支。
This script will be executed once after any of the files being tracked by your bare repository are updated. Make sure that this script is executable.
该脚本将在裸存储库跟踪的任何文件更新后执行一次。
It is good practice to create your bare repository with the.git extension so that you can view it with tools such as gitweb, which requires this extension.
使用. git扩展名创建裸存储库是一个好习惯,这样您就可以使用gitweb等工具查看,这些工具要求该扩展名。
Ideally, I would clone a bare repository and then do an empty commit in it to get started so that the branch name appears (by default "master") would be created.
理想情况下,我想克隆一个裸存储库,然后做一个空的承诺开始,分支的名字出现(默认情况下“大师”)将被创建。
Change directory up one level, and create a bare Git repository by cloning the project that you just created for your Web content.
更改到上一级目录,通过复制刚刚为Web内容创建的项目创建一个裸git存储库。
Change directory up one level, and create a bare Git repository by cloning the project that you just created for your Web content.
更改到上一级目录,通过复制刚刚为Web内容创建的项目创建一个裸git存储库。
应用推荐