【发布时间】:2013-10-02 02:51:27
【问题描述】:
我有我的本地开发仓库(来源)和一个远程仓库,我使用 git init --bare 作为recommended here 创建。我也跑了git --bare update-server-info
git config --bool core.bare true
Git 远程 -v 显示
origin http://staging.websitename.com (fetch)
origin http://staging.websitename.com (push)
remote ssh://user@xx.xx.xx/home/user/public_html/staging (fetch)
remote ssh://user@xx.xx.xx/home/user/public_html/staging (push)
在此之后并运行 git push remote 或 git push -all remote,它通过并且没有给我任何错误。为什么我在远程仓库中看不到文件??
Compressing objects: 100% (4121/4121), done.
Writing objects: 100% (4242/4242), 18.70 MiB | 694 KiB/s, done.
Total 4242 (delta 495), reused 0 (delta 0)
【问题讨论】:
-
我发现这个答案非常有帮助;它可以让你用最少的步骤做你想做的事:superuser.com/questions/1316300/…