The receive.denyCurrentBranch parameter determines what happens if you click on the repo branch, which is a check.
By default, it rejects it (which is why you usually only click on bare repositories that don't have validation branches).
It can be disabled using ignore or warn .
Another option is updateInstead .
What this means is that if HEAD and the working directory are the same, and the nested branch is HEAD , both the working directory and the / HEAD branch are updated at the same time.
If the working directory is different from HEAD , pressing is rejected.
This is useful, for example, for clicking on web servers.
My question is, does this option interact with Index ?
Is the index updated? What if HEAD and working directory are the same but not Index ?
source share