What would happen if we bring the like poles of two bar magnets close to each other?
They repel
The like poles of magnets repel and unlike poles attarct each other. This is the reason why bringing the like poles of two magnets close makes them repel each other.