GIVE UP = stop trying. GIVE AWAY = reveal or donate. GIVE OUT = distribute or stop working.
Don't give up — you're nearly there!
Use 'give up' when someone stops trying or stops an activity; the sentence means 'Don't stop trying' because you're almost finished.
She gave away all her old clothes to charity.
Use 'give away' to mean 'donate' or 'transfer to someone'; here it means she donated her old clothes to charity.
The printer gave out just before the deadline.
Use 'give out' when a machine or device stops working or becomes broken; the printer stopped functioning right before the deadline.
He gave out free samples to customers.
Use 'give out' to mean 'distribute' or 'hand out' to people; the man distributed free samples to customers.
She tried not to give away the surprise.
Use 'give away' to mean 'accidentally reveal' or 'expose a secret'; she tried not to reveal the surprise.
His expression gave away that he was lying.
Use 'give away' when someone's appearance or behaviour reveals something they wanted to hide; his facial expression betrayed that he was lying.
He gave up smoking last year.
Use 'give up' to mean 'stop doing a habit or activity'; he stopped smoking one year ago.
Our food supplies gave out after three days.
Use 'give out' when supplies or resources become completely used up or exhausted; after three days, the food supplies ran out.
She gave up her seat to an elderly passenger.
Use 'give up' when you voluntarily surrender or relinquish something; she surrendered her seat to an elderly passenger.
The teacher gave out the exam papers.
Use 'give out' to mean 'distribute' or 'hand out' materials to a group; the teacher distributed the exam papers to students.