转--Gource:让git开出花来


gource 是一个开源项目, 处理各种代码管理工具(git,svn,hg,bzr,cvs2cl)的历史, 用动画展示代码结构和作者的状态。

简书地址

gource介绍

git的历史是一部电影, gource的能让它活起来, ffmpege可以把这段视频保存下来。

gource

gource 是一个开源项目, 处理各种代码管理工具(git,svn,hg,bzr,cvs2cl)的历史, 用动画展示代码结构和作者的状态。

下面这段gif展示了过敏平台项目开始的时候从4月25到4月30之间Marvin同学忙碌于代码库各处的情形。中间的那个小红人是Marvin😂

gource

很帅吧!

gource --title "ALK-project" --date-format "%y-%m-%d:%R" alk-wxapi 安装好工具以后,你可以执行下面这个命令来看到一样的结果。

gource使用

# 安装gource
brew install gource
# 安装ffmpeg
brew install ffmpeg
# 执行
gource project.git

# 生成mp4电影
gource --title "ALK project" --date-format "%D" -1280x720 alk-wxapi -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4

自己试试吧。


评论
  目录