A little more info would help.
If you are dealing with a cistern, you could remove power from the pump, run a hose from the faucet to the cistern, and release the water from the pressure tank back into the cistern. Once depressurized, add a valve. Actually add several valves, so that you can service the pump and pressure tanks also.
If you are dealing with a well, cut power to the pump, run a hose from the faucet to anywhere you want to put water (or just put a large
bucket under the faucet, most pressure tanks aren't that large) release the pressure and add valves as above.
If you are dealing with an artesian well, I hope there is a valve before the pump. If not you are going to get wet.
Copper is finicky if it's not completely drained near the new solder joints, PVC is a bit more forgiving but still can't be gushing water.
If there are other factors, let us know. It's not too difficult to do this, but it all depends on the details as far as how to best handle the situation.
Best of luck!