Skip to content

Instantly share code, notes, and snippets.

@fl3a
fl3a / uberspace-jekyll-deployment.sh
Last active March 30, 2019 16:42
Deployment of Jekyll-Sites on Uberspace via Git Bare Repository and post-receive Hook
#!/bin/bash
#
# Deployment of Jekyll-Sites on Uberspace
# via Git Bare Repository and post-receive Hook.
#
# See https://netzaffe.de/jekyll-deployment-auf-uberspace-via-bare-repo-und-post-receive-hook/
# for requirements and more detailed description (german)
read oldrev newrev ref
pushed_branch=${ref#refs/heads/}