Skip to content

Commit

Permalink
docs: example of using config vars to sort git branch (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly authored Jul 12, 2023
1 parent 8547b55 commit f1ac9e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f1ac9e3

Please sign in to comment.