在 mac 的機器 A 上 clone 出來一個 git 的 repository TEST
在 linux 的機器 B 上 clone 出來一個 git 的 repository TEST
me@A:~/TEST> git push me@B:TEST
Everything up to date
me@B:~/TEST> git push me@A:TEST
bash: git-receive-pack: command not found
fatal: The remote end hung up unexpectedly
問題似乎是使用 git 時 $PATH 沒有被 .bashrc 或 .profile 設定
他甚至不讀取 /etc/rc.common
如果我把 git-receive-pack 和 git-upload-unpack
從 /opt/local/bin 下面 link 去 /usr/bin 或是 /usr/local/bin 則可正常執行
請問我有沒有其他不那麼醜的方法?
--
在 linux 的機器 B 上 clone 出來一個 git 的 repository TEST
me@A:~/TEST> git push me@B:TEST
Everything up to date
me@B:~/TEST> git push me@A:TEST
bash: git-receive-pack: command not found
fatal: The remote end hung up unexpectedly
問題似乎是使用 git 時 $PATH 沒有被 .bashrc 或 .profile 設定
他甚至不讀取 /etc/rc.common
如果我把 git-receive-pack 和 git-upload-unpack
從 /opt/local/bin 下面 link 去 /usr/bin 或是 /usr/local/bin 則可正常執行
請問我有沒有其他不那麼醜的方法?
--
All Comments