git-shots
git-shots copied to clipboard
Take photo every time you commit then make a film
git-shots
Take photo every time you commit then make a film
Prerequisites
- git
- imagesnap
- ffmpeg
Setup
Following steps assume that you have no local post-commit hooks. If you have - use your brain.
brew install imagesnapgit clone- switch to cloned directory
cp -r .git-templates ~/.git-templates && cp -r .git-post-commit-scripts ~/.git-post-commit-scripts- tell git where to find templates
git config --global init.templatedir '~/.git-templates' - update your existing repos with
git init- if
.git/post-commitalready exists in projectgit initwill not update it - you will need to
rmthe file and rerun or merge it manually.
- if
- commits will now put a photo in
~/.gitshotsdirectory and append activity tolog.txt
Making a film
- requires
ffmpeg - run
bin/make-filmwill outputfilm_${timestamp}.mp4to~/.gitshots