docs: add note about auto-accepting a git branch as the primary branch on first push

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez
2021-03-05 11:04:42 -05:00
committed by GitHub
parent 0c9a98ce18
commit e4c7e3eb74

View File

@@ -63,6 +63,8 @@ dokku git:set --global deploy-branch SOME_BRANCH_NAME
dokku git:set node-js-app deploy-branch SOME_BRANCH_NAME
```
As of 0.22.1, Dokku will also respect the first pushed branch as the primary branch, and automatically set the `deploy-branch` value at that time.
Pushing multiple branches can also be supported by creating a [receive-branch](/docs/development/plugin-triggers.md#receive-branch) plugin trigger in a custom plugin.
### Configuring the `GIT_REV` environment variable