GitHub is not supported out-of-the box as a source control system for Ax.
You would need to write your own integration, and although I think it would be possible (pure technically speaking that is), my advice would be to save yourself the time, trouble and frustration and just stick to the source control solutions that are supported by Ax.