From 13740e2fd9328fb06a15e0d7d6dcc7b9b2b1eddf Mon Sep 17 00:00:00 2001 From: Igor Shubovych Date: Thu, 17 Dec 2015 12:09:03 +0200 Subject: [PATCH] git-config: add page --- pages/common/git-config.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/git-config.md diff --git a/pages/common/git-config.md b/pages/common/git-config.md new file mode 100644 index 000000000..225468f90 --- /dev/null +++ b/pages/common/git-config.md @@ -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`