mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 21:55:33 +02:00
Merge pull request #363 from igorshubovych/git-config
git-config: add page
This commit is contained in:
commit
42155ea6dd
1 changed files with 27 additions and 0 deletions
27
pages/common/git-config.md
Normal file
27
pages/common/git-config.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# git config
|
||||||
|
|
||||||
|
> Get and set repository or global options
|
||||||
|
|
||||||
|
- Print list of options for current repository
|
||||||
|
|
||||||
|
`git config --list --local`
|
||||||
|
|
||||||
|
- Print global list of options, set in ~/.gitconfig
|
||||||
|
|
||||||
|
`git config --list --global`
|
||||||
|
|
||||||
|
- Get full list of options
|
||||||
|
|
||||||
|
`git config --list`
|
||||||
|
|
||||||
|
- Get value of alias.ls option
|
||||||
|
|
||||||
|
`git config alias.st`
|
||||||
|
|
||||||
|
- Set option alias.ls=status in file ~/.gitconfig
|
||||||
|
|
||||||
|
`git config --global alias.ls "status"`
|
||||||
|
|
||||||
|
- Remove option alias.st from ~/.gitconfig
|
||||||
|
|
||||||
|
`git config --global --unset alias.st`
|
Loading…
Add table
Reference in a new issue