最弱エンジニアの付箋紙

システム開発に関して勉強になったことを書きためて、なんとなく身につけるための心のメモ。

git push したら warning: push.default is unset って怒られた

標題の通りですが、こんなにガミガミと怒られました。

$ git push origin/sample
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)

ここ を見て解決しましたが、要は push の引数を間違えていた模様。。

リモートリポジトリ名/ブランチ名  

ではなく

リモートリポジトリ名 ブランチ名  

という、2つの引数を与えてあげる必要がありますよね、そうですよね。