Setting global variables

From wikipost
Revision as of 22:47, 13 February 2024 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Global User Name

Get the current global user name:

git config --global user.name


Set the current global user name:

git config --global user.name "Joe Bloggs"


Global User Email address

Get the current global user email address:

git config --global user.email


Set the current global user email address:

git config --global user.name "joe@bloggs.com"