How do you beat Genichiro Ashina in Sekiro: Shadows Die Twice?

Quick answer: Stay close and deflect his combos to break his posture, jump his sweeps, and dodge his thrusts. In the last phase, jump and reverse his lightning back at him.
Show walkthrough (quest spoilers)
Where he is
Genichiro waits on the roof of Ashina Castle’s tower, past Jinsuke Saze or the room with three Nightjar ninjas. Rest at the Ashina Dojo idol first. You need three Deathblows in total.
Phase one and two
Stay close, because at range he shoots arrows and does a jumping volley. Deflect his sword combos to build posture, then hit him after each string. Jump over his sweep and step to the side of his thrust, or use Mikiri Counter if you have it.
Way of Tomoe
After two Deathblows he becomes Genichiro, Way of Tomoe. He adds a leaping thrust, a sword dive, a running grab that cannot be blocked, and lightning slashes. Sprint away or to the side when he starts the grab.
Send the lightning back
When he jumps and charges lightning, jump too and attack before you land. That sends the lightning back at him, deals heavy damage and stuns him so you can rush in. How Lightning Reversal works.
Rewards
He drops Memory: Genichiro and Bloodsmoke Ninjutsu, plus 2000 XP. The way forward in Ashina Castle opens after the fight.
