Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitstats #75

Open
nonocast opened this issue Feb 22, 2020 · 1 comment
Open

gitstats #75

nonocast opened this issue Feb 22, 2020 · 1 comment

Comments

@nonocast
Copy link
Owner

nonocast commented Feb 22, 2020

install

git clone git://github.com/hoxu/gitstats.git

然后根据系统作link

ln -s ./gitstats/gitstats /usr/local/bin/gitstats

第一个参数是source, clone下来中的gitstats

usage

gitstats <your-project-dir> <your-project-dir>/stats
  • 第一个参数是项目目录
  • 第二个参数是gitstats html的生成目录

如果直接在项目目录中可以直接gitstats . stats

生成后open <your-project-dir>/stats/index.html即可

Screen Shot 2020-02-23 at 1 17 25 AM

待解决问题:

  • 生成后缺少gitstats.css和sortable.js,没去找解决办法,直接从repo中复制过来
@CanMusic
Copy link

生成后缺少gitstats.css和sortable.js,没去找解决办法,直接从repo中复制过来

ln -s ./gitstats/gitstats.css /usr/local/bin/gitstats.css
ln -s ./gitstats/sortable.js /usr/local/bin/sortable.js
ln -s ./gitstats/arrow-up.gif /usr/local/bin/arrow-up.gif
ln -s ./gitstats/arrow-down.gif /usr/local/bin/arrow-down.gif
ln -s ./gitstats/arrow-none.gif /usr/local/bin/arrow-none.gif
可解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants