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

即可....

posted @ 2015-12-11 22:13  eatpockyboy  阅读(862)  评论(0编辑  收藏  举报