add memo of checkout and branch