Configure

Identity

git config user.name 'First Last'
git config user.email 'user@domain.tld'
git config user.signingKey 'FINGERPRINT'
git config commit.gpgSign true
git config tag.gpgSign true
  • .git/config

[user]
    name = First Last
    email = user@domain.tld
    signingKey = FINGERPRINT
[commit]
    gpgSign = true
[tag]
    gpgSign = true

Auto-build

git config receive.denyCurrentBranch updateInstead
  • .git/hooks/post-receive (+x)

#! /bin/sh
../build_script