Publish a branch

Hello,
I don’t understand why it’s not possible to publish a branch and why it’s necessary to merge into the main.
Actually It means I cannot test my improvements until I merged into the main which is what I don’t want.
Regards,