Include:Git configuration: Difference between revisions

From Alpine Linux
(moved the content from Development using git:Configuration)
 
(The name doesn't need to be a full name and some people might be scared when making it seem like it)
 
Line 1: Line 1:
Configure your name and email address in git. This name and email address will show up in all your commits: {{Cmd|$ git config --global user.name "Your Full Name"
Configure your name and email address in git. This name and email address will show up in all your commits: {{Cmd|$ git config --global user.name "Your Name"
$ git config --global user.email "your@email.address"}}
$ git config --global user.email "your@email.address"}}


Using <tt>git config</tt> without <tt>--global</tt> let you configure other details for a specific git repository.
Using <tt>git config</tt> without <tt>--global</tt> let you configure other details for a specific git repository.

Latest revision as of 12:59, 5 October 2025

Configure your name and email address in git. This name and email address will show up in all your commits:

$ git config --global user.name "Your Name" $ git config --global user.email "your@email.address"

Using git config without --global let you configure other details for a specific git repository.