簡體   English   中英

不能git push並顯示錯誤“ master(預接收鈎被拒絕)”

[英]Can't git push with error “ master (pre-receive hook declined)”

我已將Tomcat 7作為盒帶,並按照此處給出的步驟進行操作-https: //www.openshift.com/kb/kb-e1088-how-to-deploy-pre-compiled-java-applications-war-and-ear -files -到-你- openshift齒輪

但是,重復進行更改的最后一步失敗了。

Vivek N@ACCOUNTINVALID ~/root (master)
$ git push --verbose
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

git config --global push.default simple

When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.

In Git 2.0, Git will default to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

Pushing to ssh://53c810bf5973ca46e70000a1@mailbostonisa-bisa.rhcloud.com/~/git/m
ailbostonisa.git/
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 20.69 MiB | 11.30 MiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
remote: OPENSHIFT_DEPLOYMENT_TYPE is 'binary' - git-based deployments are disabl
ed.
To ssh://53c810bf5973ca46e70000a1@mailbostonisa-bisa.rhcloud.com/~/git/mailbosto
nisa.git/
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://53c810bf5973ca46e70000a1@mailbostonisa
-bisa.rhcloud.com/~/git/mailbostonisa.git/'

請提供建議

git pre-receive鈎子是一個腳本,它在每次接收到推送時都在服務器端運行。 此錯誤意味着他們的服務器拒絕了您的提交。 不幸的是,您收到的錯誤不是非常有用。 如果您有權訪問服務器,請查看./.git/hooks/pre-receive並確認它沒有檢查代碼是否失敗。 您可以在http://git-scm.com/book/en/Customizing-Git-Git-Hooks上查看有關git hook的更多信息。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM