yes, github enterprise allows on premises instances.
The license is not FOSS though.


"cgit and anongit will not be orphaned:...