てきとうなメモ

本の感想とか技術メモとか

Git

gitなどのSCMのssh URL処理の脆弱性

Compromise On Checkout - Vulnerabilities in SCM Tools · The Recurity Lablog ssh://-oProxyCommand=gnome-calculator/watというようなssh URLを処理しようとして、 ssh <ホスト名> ...のような形式で渡すと ssh -oProxyCommand=gnome-calculator ...とな…

githubで複数アカウントを利用する

Git

同じPCで複数のgithubのアカウントを使う - 役に立ちそうで役に立たないブログ リンク先はgitプロトコルの場合なのだが、username@hostnameにするとうまくいくっぽい $ git clone https://username@github.com/username/proj ... $ git push Password for 'h…

git commitでviが起動されてコミットログを書き込むとエラー

$ git commit -a error: There was a problem with the editor '/usr/bin/vi'. Please supply the message using either -m or -F option.というようなエラーになる。エディタとして/usr/bin/viを使ってコマンドの戻り値が0以外だったので、上記のエラーにな…