A gauge invarlant approach to two-dimensional quantum chromodynamics