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

このエントリーをはてなブックマークに追加
はてなブックマーク - Macで git push したら git-receive-pack: command not found のエラーが出たときの対処法
Share on Facebook
Post to Google Buzz
Bookmark this on Yahoo Bookmark
Bookmark this on Livedoor Clip
Share on FriendFeed

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

This entry was posted in git, Mac, コマンド, サーバー系 and tagged , , . Bookmark the permalink.