vcs wrapper for terrageargui and xptools
restore branch state on cleanup