when the greeks took control of egypt during the time of alexander the great they realized that their god hermes was very similar to the egyptian god thoth , and from the merging of the two came hermes trismegistus , the mythical father of the hermetic tradition .