Added ability to return to original branch when preparing server deployment