Git/config

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
Revision as of 21:58, 10 October 2019 by Woozle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

git config lets you set parameters for the current repository or globally.

Syntax

  • git config <param_name> lists the current value for the given parameter
  • git config --global <param_name> <param_value>
    • param_name: user.name, user.email, core.editor
  • git config --list lists current configuration parameters

Example

  • git config --global core.editor nano tells git to use the nano editor for commits

Links

Reference