checkout local branch

Addition of a checkout local branch function