首页 > 系统服务 > 详细

ubuntu安装smartGit

时间:2017-06-11 13:34:07      阅读:426      评论:0      收藏:0      [点我收藏+]

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的也可以,但是感觉系统的更快)

③ 添加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的一致,可以为空)就可以了。

 

ubuntu安装smartGit

原文:http://www.cnblogs.com/xiaochou/p/install_SmartGit.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!