configure-git.rst 820 B

12345678910111213141516171819202122232425262728293031323334
  1. .. _configuregit:
  2. Configure Git
  3. =============
  4. This chapter describes maintainer level git configuration.
  5. Tagged branches used in :ref:`Documentation/maintainer/pull-requests.rst
  6. <pullrequests>` should be signed with the developers public GPG key. Signed
  7. tags can be created by passing the ``-u`` flag to ``git tag``. However,
  8. since you would *usually* use the same key for the same project, you can
  9. set it once with
  10. ::
  11. git config user.signingkey "keyname"
  12. Alternatively, edit your ``.git/config`` or ``~/.gitconfig`` file by hand:
  13. ::
  14. [user]
  15. name = Jane Developer
  16. email = jd@domain.org
  17. signingkey = jd@domain.org
  18. You may need to tell ``git`` to use ``gpg2``
  19. ::
  20. [gpg]
  21. program = /path/to/gpg2
  22. You may also like to tell ``gpg`` which ``tty`` to use (add to your shell rc file)
  23. ::
  24. export GPG_TTY=$(tty)