画竜点睛を衝く@mapyo

日々やった事をつらつらと書くブログです

GitHubにpushする時に毎回ユーザ名とパスワードを求められていた。

GitHubにpushする度にusername/passwordを求められるとき - Qiita

ここの通りだった。

$ git remote -v
origin  https://github.com/mapyo/php-client-sample (fetch)
origin  https://github.com/mapyo/php-client-sample (push)

$ git remote set-url origin git@github.com:mapyo/php-client-sample.git

httpsになっていたので、gitっぽいやつに変更。


ghqでソースを取ってくる時に

$ ghq get https://github.com/mapyo/php-client-sample

とするのか、

$ ghq get git@github.com:mapyo/php-client-sample.git

とするのかの違いでoriginのURLが変わってきそうだー