書き置き。

ほぼ勉強の記録みたいなもんです。

Macで git push したら git-receive-pack: command not found のエラーが出たときの対処法

Macインストーラー版gitをインストールした場合、git push コマンドを実行すると、こんなエラーが出る

bash: line1: command not found: git-receive-pack
fatal: The remote end hung up unexpectedly

パスが通ってないのが原因なので、.bashrc にこの1行を追加すればOK

export PATH=$PATH:/usr/local/bin