在局域網(wǎng)的服務(wù)器上面使用git --bare init demo.git
建立了空倉庫,本地clone
后添加文件push
到服務(wù)器上面顯示成功,但是登錄服務(wù)器的demo.git
目錄中看不到添加的文件,其他人pull
可以看到我push的文件?
光陰似箭催人老,日月如移越少年。
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