help/rtfd/public/git/configure.rst
Marc Beninca 4894d3724c
git/gpg
2024-02-29 14:35:32 +01:00

40 lines
599 B
ReStructuredText

Configure
=========
Identity
--------
.. code:: shell
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
.. code:: ini
[user]
name = First Last
email = user@domain.tld
signingKey = FINGERPRINT
[commit]
gpgSign = true
[tag]
gpgSign = true
Auto-build
----------
.. code:: shell
git config receive.denyCurrentBranch updateInstead
* .git/hooks/post-receive (+x)
.. code:: shell
#! /bin/sh
../build_script