The importance and application of state-of-the-art control techniques in the grid networks of inverter-based distributed generation units not only improve the performance in unbalanced situations but also supplement the efficiency of the system in normal conditions. Intelligent control is necessary and mandatory due to the unbalanced load distribution that occurs permanently in the three phases of the microgrid. A current controller, in this research, used in distributed generation sources is presented and is designed to compensate for high harmonics and a suitable dynamic speed to track the reference current in a short transient time. Our innovative controller is composed of a repetitive control to eliminate harmonics and an adaptive fuzzy type-2 proportional-integral (PI) control. This controller not only performs simultaneous compensation of harmonics and has a suitable dynamic response to track the reference current in a small transient time, but also improves the bandwidth and stability of the system. Finally, the performance and result of the controller are shown by simulation for a three-phase converter connected to the network of local non-linear loads.