-3

ブランチを開いて (そして、チケットごとに 1 つ必要です)、やろうとするときはいつでもgit push

fatal: The current branch testchx has no upstream branch.
To push the current branch and set the remote as upstream, use

  git push --set-upstream origin testchx

git push --set-upstream origin testchx致命的に死ぬのではなく、自動的に実行するように git に指示する方法はありますか?

Git バージョン: 1.8.1.4

4

1 に答える 1

2

1 つの方法は、エラー メッセージの指示に従うことです。

git push --set-upstream origin testchx

もう 1 つは、push.default動作を設定することです。

git config push.default current

詳細については:

git help config
于 2013-03-29T21:39:32.483 に答える