40 lines
599 B
ReStructuredText
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
|