Mac SourceTree 找不到目錄

原文地址:http://my.oschina.net/meiguizhinian/blog/478886git

今天在 Mac 上用 SourceTree 克隆 svn 的時候, 出現了 warning: templates not found /usr/local/git/share/git-core/templates 警告,致使克隆失敗. 怎麼辦呢.svn

在終端輸入 ui

open‍ /usr/local/spa

在打開的目錄中能夠看到:.net

  • 若是沒有 git 目錄

 

打開下面的地址,下載 git-osx 並安裝,blog

http://git-scm.com/download/macget

  • 若是有 git 目錄

 

而且相應的 share,git-core,templates 目錄都有,,說明是權限的問題.it

在終端輸入:gui

sudo chmod -R 755 /usr/local/git/share/git-core/templates終端

 注意 sudo 建立目錄須要輸入當前 Mac 用戶的密碼

  •  最後從新 clone 項目

以爲有用請點個贊 🔽

相關文章
相關標籤/搜索