rtfd/in/public/git/configure.rst

33 lines
406 B
ReStructuredText
Raw Normal View History

2017-12-02 22:02:37 +00:00
Configure
2019-08-24 18:44:48 +00:00
=========
2017-12-02 22:02:37 +00:00
Identity
2019-08-24 18:44:48 +00:00
--------
2017-12-02 22:02:37 +00:00
.. code:: shell
git config user.name "First Last"
git config user.email "user@domain.tld"
* ~/.gitconfig
.. code:: ini
[user]
name = "First Last"
email = "user@domain.tld"
2019-08-24 18:44:48 +00:00
Auto-build
----------
.. code:: shell
git config receive.denyCurrentBranch updateInstead
* .git/hooks/post-receive (+x)
.. code:: shell
#! /bin/sh
../build_script