gitのバージョンが古かったのでbrewでバージョンアップしました。
$ brew update
$ brew upgrade git
$ git --version
git version 2.3.5
すると、常にユーザ名、パスワードが求められるように。。
$ git pull origin master Username for 'https://github.com': Password for 'https://github.com':
参考URLによるとremoteの設定がダメみたいなので確認します。
$ git remote -v
origin https://github.com/hoge/sample.git (fetch)
origin git@github.com:hoge/sample.git (push)
cloneの仕方が悪かったのか、fetchだけhttpsになってるので修正します。(なにゆえ...)
$ git remote set-url origin git@github.com:hoge/sample.git $ git remote -v origin git@github.com:hoge/sample.git (fetch) origin git@github.com:hoge/sample.git (push)
以上です。