YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* push時に--set-upstreamを聞かれるのを省略する [#i1f3acbb]
** 現象 [#e7645eba]
$ git branch branch1
$ git co branch1
(略)
$ git commit -m 'N/A'
$ git push
fatal: The current branch branch1 has no upstream branch.
To push the current branch and set the remote as upstrea...
git push --set-upstream origin branch1
- 新規ブランチ(ここではbranch1)を作って、何かしらコミッ...
- '''git push --set-upstream origin branch1'''としてpush...
** リモートブランチ名を現在のローカルのブランチ名にする [...
$ git config push.default current
(または git config --global push.default current )
$ git push
- 上のようなコマンドで.gitconfig(.git/config)に設定をし...
終了行:
* push時に--set-upstreamを聞かれるのを省略する [#i1f3acbb]
** 現象 [#e7645eba]
$ git branch branch1
$ git co branch1
(略)
$ git commit -m 'N/A'
$ git push
fatal: The current branch branch1 has no upstream branch.
To push the current branch and set the remote as upstrea...
git push --set-upstream origin branch1
- 新規ブランチ(ここではbranch1)を作って、何かしらコミッ...
- '''git push --set-upstream origin branch1'''としてpush...
** リモートブランチ名を現在のローカルのブランチ名にする [...
$ git config push.default current
(または git config --global push.default current )
$ git push
- 上のようなコマンドで.gitconfig(.git/config)に設定をし...
ページ名: