I know you need to put current around the magnet (or certain type of metal) in order to attract but is it possible to use as pushing an object away. if there is please tell me how!
To push an object away, you need equipment that is low to the ground when it applies the force. Bulldozers are designed to push objects. Electromagentic cranes are designed to deal with vertical forces, so they are used to lift and drop metal objects. They use electricity to flow through coils wrapped around a metal core to generate a strong magnetic field. Trying to use them to push things could cause a crane to tip over since they are not designed to deal with horizontal forces. Even if you could get the electromagnet wired to repel metal objects, when you bring the electromagnet near the object, it would repel away in an unwieldy manner because of friction and interference with the ground. And trying to direct a large electromagnet at the end of a long chain would be difficult.