Implement analog for 'git checkout --branch xxx ...'