How to update WordPress plugins properly using git?

No it’s fine, lots of hosts depend on plugins being stored in git this way and it isn’t an issue.

You can replicate the process by manually updating a file locally to test. Plugin authors tend to store a database version field, and update if it’s mismatched, or they rely on functions such as dbdelta which auto-update table schema

error code: 523