因为我在本地PC上有一个最新的存储库,所以我最终用--bare参数克隆了存储库,并用这些文件更新了服务器。
git clone --bare <path to clone from> <path to clone to>