Unable to push: not enabled by p4 protect

Problem Solution

If

git push origin master

results in

... Access for user 'bruno' has not been enabled by 'p4 protect'...
Note

A user with the write-ref permission also needs p4 protect write access.

The write-ref permission is the sole permission that applies the protection setting in the protections table for a file or directory. As a superuser, run p4 protect to open the spec form, then add the user to the protections table with the write permission:

write user bruno * //gD1/...

See p4 protect in Helix Core Command-Line (P4) Reference.