V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ectotherm
V2EX  ›  程序员

有什么基于git的命令行工具吗?

  •  
  •   ectotherm ·
    axplus · 2012-01-17 14:52:22 +08:00 · 5543 次点击
    这是一个创建于 4483 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1. 感觉git很多命令很强大,但是我用不到,却每次要敲一堆的命令;
    2. 我懒得自己写一个;
    3. 我的帐号居然被stackoverflow封了,汗!

    请教了,谢谢!
    24 条回复    1970-01-01 08:00:00 +08:00
    sogood
        1
    sogood  
       2012-01-17 15:01:07 +08:00
    你想问什么?
    lldong
        2
    lldong  
       2012-01-17 15:05:54 +08:00
    `brew search git`
    bitsmix
        3
    bitsmix  
       2012-01-17 15:06:20 +08:00
    我也想知道你想问什么。

    基于 git 的命令行工具⋯⋯

    hub 算么?
    icyflash
        4
    icyflash  
       2012-01-17 15:07:36 +08:00
    windows可以使用powershell https://github.com/dahlbyk/posh-git
    ectotherm
        5
    ectotherm  
    OP
       2012-01-17 15:17:18 +08:00
    @sogood @lldong @bitsmix @icyflash 类似hub的工具,但是hub绑定到github,我记得以前好像有一些类似的封装,忘记叫什么了
    dofine
        6
    dofine  
       2012-01-17 15:18:39 +08:00 via Android
    额 oh-my-zsh 里 git 的插件算么。
    ectotherm
        7
    ectotherm  
    OP
       2012-01-17 15:28:07 +08:00
    @dofine 好像不太算吧。

    @sogood @lldong @bitsmix @icyflash @ectotherm 我重新整理一下需求,其实就是下午我碰到操作svn过程中一些比较繁琐的问题,所以想有没有这种东西。比如smartgit就是一个类似的东西,但是它比我要的强大太多了,而且收费。
    ectotherm
        8
    ectotherm  
    OP
       2012-01-17 15:36:07 +08:00
    对了,还有比如gclient,但是这个东西是chromium专用的。我要有个东西专门来操作svn和自动帮我执行git gc之类命令的。
    bitsmix
        9
    bitsmix  
       2012-01-17 15:54:37 +08:00
    自己写alias呢?或者用zsh里面的git的插件(其实就是alias没错啊。)
    bitsmix
        10
    bitsmix  
       2012-01-17 15:56:31 +08:00
    如果你用的是mac ,推荐 sourcetree 。
    ectotherm
        11
    ectotherm  
    OP
       2012-01-17 16:16:34 +08:00
    @bitsmix cli远远比gui快很多,仅仅在看图标或者比较历史的时候,gui会比cli直观。我现在就保持着用svn git等命令行的习惯。

    现在碰到的问题是用git操作svn库,有些命令太累赘了,算了我重新思考下自己的需求,整理一份脚本。
    toothpaste
        12
    toothpaste  
       2012-01-17 16:52:32 +08:00
    可以用 tig 来看历史.
    bitsmix
        13
    bitsmix  
       2012-01-17 16:53:02 +08:00
    @ectotherm 把 svn 转成 git 的仓库呗
    spritevan
        14
    spritevan  
       2012-01-17 17:20:36 +08:00
    ectotherm
        15
    ectotherm  
    OP
       2012-01-17 17:23:49 +08:00
    @bitsmix 中央库是svn的,这点没法改变。
    ectotherm
        16
    ectotherm  
    OP
       2012-01-17 17:25:57 +08:00
    @spritevan 帅,我看看
    sogood
        17
    sogood  
       2012-01-17 17:41:36 +08:00
    还是自定义吧。
    请参考 Play Git Like A Violin
    http://www.metacircus.com/hacking/2011/02/18/play-git-like-a-violin.html
    ssword
        18
    ssword  
       2012-01-17 17:52:53 +08:00
    从同事那里见过一个tig挺不错的,有个基于ncurse的图形界面,可以省去一堆git add xxx
    shawiz
        20
    shawiz  
       2012-01-17 18:01:04 +08:00
    tsuibin
        21
    tsuibin  
       2012-01-18 17:11:43 +08:00
    推荐个好用的图形化的git吧
    zxwind
        22
    zxwind  
       2012-01-18 17:56:54 +08:00
    其实我想问的是楼主怎么被stackoverflow封的
    cynial
        23
    cynial  
       2012-01-18 18:14:39 +08:00
    ectotherm
        24
    ectotherm  
    OP
       2012-01-18 19:34:41 +08:00
    @zxwind 说发帖不符合他们的faq要求,就封了

    @tsuibin 目前最好用的我觉得是tower

    不过要真正发挥出git所有用途还是命令行。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   986 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 106ms · UTC 20:10 · PVG 04:10 · LAX 13:10 · JFK 16:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.