In SAP ERP (probably in other SAP systems as well), you have transport orders which you could see as “commits” i guess in git. These transports are send from development to test or production system and then “activated”, which means compiled in their terms.
With git you normally solve this with different branches or tag one branch for a release. Could you at least in theory create the whole erp system in a git repo, create new branches for each system. Would this not solve the issues (need for caring for the import of order of transports, unwanted different states in different systems) that the transport system has?