From 69e4e5b994294d56045e2dc2fbc7edc5c1651282 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Thu, 25 Feb 2016 09:41:46 -0500 Subject: [PATCH 1/2] Fix cmdline in credentials.asc --- book/07-git-tools/sections/credentials.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/07-git-tools/sections/credentials.asc b/book/07-git-tools/sections/credentials.asc index f82418148..dc4c75020 100644 --- a/book/07-git-tools/sections/credentials.asc +++ b/book/07-git-tools/sections/credentials.asc @@ -36,7 +36,7 @@ Here's an example of how you'd configure the ``store'' helper with a custom file [source,console] ---- -$ git config --global credential.helper store --file ~/.my-credentials +$ git config --global credential.helper 'store --file ~/.my-credentials' ---- Git even allows you to configure several helpers. From 0c5c2f47b345f35b418b6377d50b9e816230e8e2 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Thu, 25 Feb 2016 10:17:58 -0500 Subject: [PATCH 2/2] Fix read-only cmdline in credentials.asc --- book/07-git-tools/sections/credentials.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/07-git-tools/sections/credentials.asc b/book/07-git-tools/sections/credentials.asc index dc4c75020..4628bf8aa 100644 --- a/book/07-git-tools/sections/credentials.asc +++ b/book/07-git-tools/sections/credentials.asc @@ -193,7 +193,7 @@ Since its name starts with ``git-'', we can use the simple syntax for the config [source,console] ---- -$ git config --global credential.helper read-only --file /mnt/shared/creds +$ git config --global credential.helper 'read-only --file /mnt/shared/creds' ---- As you can see, extending this system is pretty straightforward, and can solve some common problems for you and your team.