Development using git:Configuration: Difference between revisions

From Alpine Linux
(Created page with "== Configure your global git config == First you need to tell your name and email to git. This name and email will show up in all your commits. {{Cmd|<nowiki>git config --global...")
 
(moved content to Include:Git configuration)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Configure your global git config ==
== Configure your global git config ==
First you need to tell your name and email to git. This name and email will show up in all your commits.
{{:Include:Git configuration}}


{{Cmd|<nowiki>git config --global user.name "Your Name Comes Here"
[[Category:Development]]
git config --global user.email you@yourdomain.example.com</nowiki>}}
 
Using <tt>git config</tt> without <tt>--global</tt> let you configure other details for a specific git repository.

Latest revision as of 11:08, 3 October 2025

Configure your global git config

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.