我在OpenShift上部署了一个Git应用程序。到目前为止,我正在使用git push
命令,该命令会自动将新代码推送到远程存储库,以及通过Maven构建和部署代码。
但是昨天我正在尝试Jenkins,所以我在我的应用程序中添加了一个Jenkins墨盒。 git push
已更改为通过Jenkins构建。由于我不想通过Jenkins进行建筑细节,我删除了那个墨盒。
但现在我的git push
命令无效。
它给出了以下信息:
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
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)
Everything up-to-date
如何使用git push
再次部署我的应用程序?
答案 0 :(得分:2)
什么不起作用?看起来你更新了本地的git安装,现在收到关于git push工作的默认方式的警告。阅读那里给出的指示并按照它们去除警告信息,否则看起来它可以正常工作。