今天在 Mac 上用 SourceTree 克隆 svn 的時候, 出現了 warning: templates not found /usr/local/ Git
/share/git-core/templates 警告,導緻克隆失敗.
怎麼辦呢.
在終端輸入
open /usr/local/
在打開的目錄中可以看到:
打開下面的位址,下載下傳 git-osx 并安裝,
http://git-scm.com/download/mac并且相應的 share,git-core,templates 目錄都有,,說明是權限的問題.
在終端輸入:
sudo chmod -R 755 /usr/local/git/share/git-core/templates
注意 sudo 建立目錄需要輸入目前 Mac 使用者的密碼