Q.Staking up Apricot tree that is leaning
How can I stake up my apricot tree to get it to grow straight without damaging it? It is about 3 -4 years old and is healthy but leans really bad.

Temporary staking may help your tree. Leave the stake(s) in place for only one season. These articles discuss proper staking techniques:
http://www.myminnesotawoods.umn.edu/2008/12/staking-and-guying-trees-best-materials-and-technique/
https://www.extension.iastate.edu/forestry/tree_planting/stake.html
Pruning may also help your tree if it is heavier on one side. It may also be necessary to remove some fruit if heavy fruit load contributes to the leaning.
http://acmg.ucanr.edu/Growing_Your_Own_Food/Pruning_Fruit_Trees/