概要
ローカルで作成したブランチを初回pushする際に
fatal: The current branch hoge-hoge-branch has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin hoge-hoge-branch
To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
と言う注意が出て、git pushのコマンドをコピペする。
push.autoSetupRemoteのconfigを参照せよ。と言う事をgit側から提示されている。
gitのconfigとして設定してね。との旨。
$ git config --global push.autoSetupRemote ture
をglobalに設定する。これで初回pushの際に自動的にブランチが作成される。
今の御時世だとClaudeとかでcommitしといてーと命令も出来るけど、結局何のコマンドだっけ?が多くなる40代
falseにする時は来るのだろうか。