📕 subnode [[@vera/git hooks]] in 📚 node [[git-hooks]]
  • I'm testing creating a post-commit hook that copies over new notes to public repo and pushes them to [[gitlab]]
    • OMG it worked heh here it is cat .git/hooks/post-commit
#!/bin/sh
cd ../yolo-pub
rsync ../yolo/*.md .
git add .
git commit -m post-commit-hook
git push

Backlinks

    • TIL [[git]] comes with examples for [[git hooks]] in .git/hooks for every new repo you initialize

Backlinks last generated 2022-01-28 07:55:20

Receiving pushes... (requires JavaScript)
📖 stoas for [[@vera/git hooks]]
Loading context... (requires JavaScript)