zoukankan      html  css  js  c++  java
  • Centos7 安装Git-cola

    首先安装Git

    sudo yum -y install git*

    找到 git-all.noarch , 安装这个.

    sudo yum install git-all.noarch

    ============ 以下是git-cola的文档内容 ==========

    因为貌似Centos的yum没有提供cola的下载. 我用了git-gui一个下午果断弃了.

    然后去git-cola的官网下了他的源码. 找到了一份叫readme的文档.

    找到了下面这些:

    ## RUN FROM SOURCE
    
    You don't need to install *git-cola* to run it.
    Running *git-cola* from its source tree is the easiest
    way to try the latest version.
    
        git clone git://github.com/git-cola/git-cola.git
        cd git-cola
        ./bin/git-cola
        ./bin/git-dag
    
    Having *git-cola*'s *bin/* directory in your path allows you to run
    *git cola* like a regular built-in Git command:
    
        # Replace "$PWD/bin" with the path to git-cola's bin/ directory
        PATH="$PWD/bin":"$PATH"
        export PATH
    
        git cola
        git dag
    
    The instructions below assume that you have *git-cola* present in your
    `$PATH`.  Replace "git cola" with "./bin/git-cola" as needed if you'd like to
    just run it in-place.
    
    # INSTALLATION
    
    Normally you can just do "make install" to install *git-cola*
    in your `$HOME` directory (`$HOME/bin`, `$HOME/share`, etc).
    If you want to do a global install you can do
    
        make prefix=/usr install
    
    There are also platform-specific installation methods.
    You'll probably want to use one of these anyways since they
    have a nice side-effect of installing *git-cola*'s PyQt4
    and argparse dependencies.

    首先是去git-cola的Github那里下载git-cola

    git clone git://github.com/git-cola/git-cola.git && cd git-cola

    然后执行:

    ./bin/git-cola
    ./bin/git-dag

    发现可以跑起来了. 然后是安装到系统... 执行

    make prefix=/usr install

    安装就可以了. 期间可能会提示安装不成功, 因为缺少了一个Qt4的库, 顺水推舟地用下面的指令安装了Qt4, 再重新make一次即可:

    sudo yum install python-qt4

     至于使用的方法嘛, 跟乌龟的差不多~

    文件打开项目的根目录. 然后右键"在终端中打开"... 在终端中输入:

    git cola

    即可....

  • 相关阅读:
    [战略]当你收到面试通知后,如下的准备可以大大提升面试成功率
    tfzq & dml
    kjl & jsd(1yet)内存泄漏定位
    面试 sn (1yet) zk watcher原理
    thread.join的本质
    关于linux中的man
    linux 新手入门
    Linux 中如何卸载已安装的软件(转载)
    如何在Linux下创建与解压,安装zip, tar, tar.gz和tar.bz2文件
    Linux系统下如何查看及修改文件读写权限
  • 原文地址:https://www.cnblogs.com/gssl/p/5040400.html
Copyright © 2011-2022 走看看