Setting global variables: Difference between revisions
Jump to navigation
Jump to search
(Created page with " ===Global User Name=== Get the current global user name: <pre> git config --global user.name "Mona Lisa" </pre> Set the current global user name: <pre> git config --global user.name "Mona Lisa" </pre>") |
No edit summary |
||
Line 5: | Line 5: | ||
Get the current global user name: |
Get the current global user name: |
||
<pre> |
<pre> |
||
git config --global user.name |
git config --global user.name |
||
</pre> |
</pre> |
||
Line 11: | Line 11: | ||
Set the current global user name: |
Set the current global user name: |
||
<pre> |
<pre> |
||
git config --global user.name " |
git config --global user.name "Joe Bloggs" |
||
</pre> |
|||
===Global User Email address=== |
|||
Get the current global user email address: |
|||
<pre> |
|||
git config --global user.email |
|||
</pre> |
|||
Set the current global user email address: |
|||
<pre> |
|||
git config --global user.name "joe@bloggs.com" |
|||
</pre> |
</pre> |
Latest revision as of 22:47, 13 February 2024
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"