Create git-config description (#26971)
* Create git-config description Add git-config description and use examples. * Rename git-config to git-config.md * Rename guide/english/git/git-config.md to guide/english/git/git-config/index.md
This commit is contained in:
committed by
Randell Dawson
parent
7c01cc9f7c
commit
306d9f175b
17
guide/english/git/git-config/index.md
Normal file
17
guide/english/git/git-config/index.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
title: Git Config
|
||||||
|
---
|
||||||
|
## Git Config
|
||||||
|
|
||||||
|
The git-config command allows global options to be retrieved and set for a repository.
|
||||||
|
|
||||||
|
See <a href='https://git-scm.com/docs/git-config' target='_blank' rel='nofollow'>Git documentation</a> for comprehensive details of this git command.
|
||||||
|
|
||||||
|
### git config --list
|
||||||
|
Will display the attributes like user name , email address , and others attributed to a git installation.
|
||||||
|
|
||||||
|
### git config --global user.email "123@abc.com"
|
||||||
|
Changes the user.email to the email address in quotation marks
|
||||||
|
|
||||||
|
### .gitconfig file
|
||||||
|
Values assigned with the git config command are stored in a hidden file named .gitconfig in the home directory.
|
Reference in New Issue
Block a user