以下の内容はhttps://kamatimaru.hatenablog.com/entry/2026/03/14/184015より取得しました。


新規ブランチのpush時に--set-upstream origin xxxを省略する

今まで、新規ブランチのpush時に一旦git pushして、以下のようなエラーが出て怒られてからgit push --set-upstream origin xxxをコピペして実行するということをしていました。

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

    git push --set-upstream origin xxx

以下のコマンドを実行して設定しておくと、新規ブランチでもgit push xxxだけでpushできることを知りました。

git config --global push.autoSetupRemote true



以上の内容はhttps://kamatimaru.hatenablog.com/entry/2026/03/14/184015より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14