Skip to content

Commit 7e4408c

Browse files
committed
docs: use git config set instead of --local
Signed-off-by: Sebastian Davids <[email protected]>
1 parent 12df6df commit 7e4408c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/user-guide/modules/ROOT/pages/scripts/git/git-get-short-hash.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To get a consistent hash length across systems you should either
1818
+
1919
[,shell]
2020
----
21-
$ git config --local core.abbrev 20
21+
$ git config set core.abbrev 20
2222
----
2323
+
2424
Unfortunately, these settings are https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_git_config[not under version control].
@@ -41,7 +41,7 @@ $ scripts/git/git_get_short_hash.sh path/to/git/repository
4141
dbd0ffb
4242
$ scripts/git/git_get_short_hash.sh . 10
4343
844881d148
44-
$ git config --local core.abbrev 20
44+
$ git config set core.abbrev 20
4545
$ scripts/git/git_get_short_hash.sh
4646
844881d148be35d7c0a9
4747
$ touch a

0 commit comments

Comments
 (0)