随笔 - 31  文章 - 0  评论 - 9  阅读 - 40980

ubuntu安装smartGit

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

 

posted on   _bob  阅读(4743)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示