为什么我的git在成功推送后会被推送? [英] Why does my git push hang after successfully pushing?

查看:174
本文介绍了为什么我的git在成功推送后会被推送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个新建立的ssh git仓库中,每当我按下时,我都会得到这样的正常输出:

On a newly set up ssh git repo, whenever I push, I get normal output like this:

➔ git push
Counting objects: 15, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 989 bytes, done.
Total 9 (delta 7), reused 0 (delta 0)

,并且更改立即可用在服务器repo上。但输出会在那里停留大约一分钟,然后完成:

It happens very quickly, and the changes are immediately available on the server repo. But the output hangs there for about a minute, and then finishes with:

To foo@bar.com:baz.git
   c8c391c..1de5e80  branch_name -> branch_name

如果我在控制-c完成之前,一切似乎都会继续正常,和远程。

If I control-c before it finishes, everything seems to continue to be normal and healthy, locally and remotely.

悬挂时做什么?在服务器端配置不正确?

What is it doing while hanging? Is something configured incorrectly on the server side?

推荐答案

服务器端可能会运行挂钩,公司脚本检查你实际编译的内容。

The server side could be running hooks that delay the completion for some reason—like company scripts checking what you pushed actually compiles..

这篇关于为什么我的git在成功推送后会被推送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆