I can only answer for AQM, and yes that is supported. We call that the bring your own git solution. You will loose all the goodies that the Teamserver setup provides you with.
for AQM we have documentation here
best regards Michiel Cuijpers of Software Improvement Group Mendix partner for AQM → QSM