Hi Nilesh
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
https://github.com/Software-Improvement-Group/sigridci
and here
https://github.com/Software-Improvement-Group/sigridci/blob/main/docs/mendix.md
best regards Michiel Cuijpers of Software Improvement Group Mendix partner for AQM → QSM