在局域网的服务器上面使用git --bare init demo.git建立了空仓库,本地clone后添加文件push到服务器上面显示成功,但是登录服务器的demo.git目录中看不到添加的文件,其他人pull可以看到我push的文件?
git --bare init demo.git
clone
push
demo.git
pull
光阴似箭催人老,日月如移越少年。
The bare warehouse only stores history and meta-information (detailed format) and does not maintain a working directory.
You can add the --workspace parameter when running git commands (such as checkout) to specify the working directory.
Bare warehouse does not store files
If you need to view the file on the server, do not add it when creating the warehouse on the server--bare
--bare
git init demo.git
The bare warehouse only stores history and meta-information (detailed format) and does not maintain a working directory.
You can add the --workspace parameter when running git commands (such as checkout) to specify the working directory.
Bare warehouse does not store files
If you need to view the file on the server, do not add it when creating the warehouse on the server
--bare