我有一个位于我正在推送到的远程仓库中的post-receive hook脚本,该脚本执行了一个
类似这样:
git reset --hard
命令。类似这样:
$ git push opal
Counting objects: 74, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (45/45), done.
Writing objects: 100% (53/53), 16.68 KiB, done.
Total 53 (delta 20), reused 0 (delta 0)
remote: warning: updating the current branch
remote: HEAD is now at 88f1e35 tweak lavalamp styles
我不理解的是,这里远程显示头部现在在XXX位置,但当我登录到服务器时,远程的工作副本根本没有更新!
有什么想法吗?