From f1ac9e3f7f1cfb5eb7cea02bfcaa56eb25ddbcbc Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Wed, 12 Jul 2023 11:59:30 -0600 Subject: [PATCH] docs: example of using config vars to sort git branch (#319) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 25b7b83f..fab05d22 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,12 @@ For linux users `FORGIT_COPY_CMD` should be set to make copy work. Example: `FOR Options can be set via environment variables. They have to be **exported** in order to be recognized by `forgit`. +For instance, if you want to order branches in `gcb` by the last committed date you could: + +```shell +export FORGIT_CHECKOUT_BRANCH_BRANCH_GIT_OPTS='--sort=-committerdate' +``` + #### shell aliases You can change the default aliases by defining these variables below.