git远程仓库中看不到本地push的文件?
大家讲道理
大家讲道理 2017-04-28 09:06:34
0
2
1043

在局域网的服务器上面使用git --bare init demo.git建立了空仓库,本地clone后添加文件push到服务器上面显示成功,但是登录服务器的demo.git目录中看不到添加的文件,其他人pull可以看到我push的文件?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
曾经蜡笔没有小新

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

git init demo.git
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template