Fix issues:
 1. config doesn't contain mapping between new created local and remote branches;
 2. local branch was not deleted but remote does