From 9c52eb9d6f2d2eadd30852bba49b148e785b06d3 Mon Sep 17 00:00:00 2001 From: Kalvin Pearce Date: Wed, 25 Nov 2020 12:56:58 +1000 Subject: [PATCH] Add notARepository description to config docs --- docs/Config.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/Config.md b/docs/Config.md index 6df7e7ef9..c3aa2417e 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -340,3 +340,24 @@ git: Result: ![](https://i.imgur.com/Nibq35B.png) + +## Launching not in a repository behaviour + +By default, when launching lazygit from a directory that is not a repository, +you will be prompted to choose if you would like to initialize a repo. You can +override this behaviour in the config with one of the following: + +```yaml +# for default prompting behaviour +notARepository: 'prompt' +``` + +```yaml +# to skip and initialize a new repo +notARepository: 'create' +``` + +```yaml +# to skip without creating a new repo +notARepository: 'skip' +```