If you need to add a shutoff valve to a water line so that you can repair a fixture or do other work while the rest of the house can still use the water, use a SharkBite Slip Ball Valve. This video shows you how I added one to a 1/2” copper pipe so I could replace a leaking faucet. This doesn’t require soldering, special tools or advanced skills.
Links to tools & products related to this video (affiliate links):
SharkBite Max 1/2” Slip Ball Valve: https://amzn.to/47ugshD
SharkBite Deburring Tool: https://amzn.to/3vqA5Kb
1/2” Pipe Cutter: https://amzn.to/3RVgBVQ
Plumbing sanding cloth: https://amzn.to/3O0g3N4