This question already has an answer here:
So learning the concept of gravitational potential energy, my professor says that when lifting an object without any acceleration, the force we exert on the object to lift it is the same as the force of gravity pulling it down. For some reason my mind is having trouble understanding that.
If the force pushing up on it is the same as the force pushing down on it, then how can we be lifting the object?
I understand that we want it to have no velocity so that none of the energy is converted into kinetic energy and so that we only have potential energy and that's how we come up with $mgh$. I just don't understand how we are able to lift the object to give it the potential energy in the first place if the net force is zero?