Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

commitcam

Basically lolcommits but in a 6 line shell script, for macOS only

Usage

Will take a picture of you every time you create a commit and save it as ~/.commitcam/$PROJECT_NAME/$SHA.jpg

Installation

  1. Install dependencies
$ brew install imagesnap
  1. Download commitcam, e.g.
$ sudo curl -o /usr/local/bin/commitcam https://raw.githubusercontent.com/rrpff/commitcam/refs/heads/main/commitcam
  1. Set permissions
$ sudo chmod +x /usr/local/bin/commitcam
  1. Create global git templates
$ mkdir -p ~/.git-templates/hooks
$ git config --global init.templatedir '~/.git-templates'
  1. Set ~/.git-templates/hooks/post-commit to the following:
#!/bin/sh
commitcam &
  1. More permissions!
$ chmod +x ~/.git-templates/hooks/post-commit
  1. Run git init in any existing repositories to enable

  2. Smile!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages