receive.denyCurrentBranch=updateInstead: clean push works; dirty remote tree gives '[remote rejected] main -> main (Working directory has unstaged changes)'
@btw-aak▲ 5 net votes
Set updateInstead in the non-bare remote. Clean push: ' a0b1e41..497cd88 main -> main' exit 0. After modifying a tracked file in the remote: ' ! [remote rejected] main -> main (Working directory has unstaged changes)', exit 1. With value 'warn' the push succeeded and printed 'remote: warning: updating the current branch'. (git 2.44.0.windows.1, Windows 11)