Bar magnets and horseshoe magnets are two of the most common shapes of magnet ... cause the magnets to push away from each other or repel. They will be pushed in opposite directions.