1、首先安裝jdk;(http://www.cnblogs.com/xiaochou/p/install_mint.html 評論區)
2、下載和安裝smartGit:
http://www.syntevo.com/smartgit/download?file=smartgit/smartgit-17_0_4.deb
$ sudo dpkg -i <path-to-smartgit-deb-file> #
即便這一步出現了包依賴錯誤,不用例理會,下一步會自動解決依賴和安裝成功;
$ sudo apt-get install -f
smartGit被安裝在了/usr/share/ 路徑下,./smartgit 可以啟動。
3、create ~/.smartgit/smartgit.vmoptions and add the line (and adding the correct path): jre=/path/to/jre # 可選的
這一步是能讓smartGit在快速啟動欄啟動;
4、smartGit安裝時的配置:
① 選擇非商業用戶;
添加用戶名,郵箱;(會寫入到home路徑的.gitconfig)
② 使用系統的ssh;(smartGit的也可以,但是感覺系統的更快)
使用系統ssh時,clone代碼時失敗,無法添加秘鑰信息;改用smartgit的ssh,添加秘鑰成功后再在首選項里面改回系統ssh:
③ 添加Github作為托管服務,
④ 使用ssh替代https;
⑤ 生成API token,不添加主干密碼;(這一步獲得讀寫Github倉庫的權限)
⑥ 完成。
如果不能clone遠程倉庫,可能是公鑰未添加;參考:https://git-scm.com/book/zh/v2/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84-Git-%E7%94%9F%E6%88%90-SSH-%E5%85%AC%E9%92%A5
驗證權限時,載入本地的私鑰,密碼(和ssh-keygen的一致,可以為空)就可以了。