![](/img/trans.png)
[英]fatal: Not a git repository (or any of the parent directories): .git on every rails command but git commands works fine
[英]Installing Git - '$ man git' works, but '$ git' returns 'command not found'
嘿,
我是第一次stackoverflow發布者,很長時間的讀者。
我將腳趾伸入Rails,並嘗試使git工作。 我已經使用OSX git安裝程序安裝了git,並且可以通過$ man git查看手冊。 但是我無法終生獲得其他任何命令。 我也重新啟動了終端。
如果有幫助,我的電話是10.5。
任何建議都很棒, 非常感謝。
嘗試搜索它sudo find / -name *git* | grep bin
sudo find / -name *git* | grep bin
,然后按照Júlio的建議,將該文件夾添加到$ PATH中。
git二進制文件在哪里安裝? 找出答案,然后將該文件夾添加到您的PATH中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.