Files / Publishing
Removing Publishing
Available with GitHub, GitLab and Bitbucket syncing.
Go to Site Settings / Files / Publishing and click Remove Publish Branch.
The publish interface becomes unavailable to all editors without a publish branch set.