How to use @theia/git

How can I use git-command to switch the specified branch automatically!!!

@anduodefeng thank you for the discussion, here are the commands contributed by the @theia/git extension.

You probably want to look at the checkout implementation which allows you to choose a specific branch from the quick-open menu:

If you’d like to do something else, you’ll likely need to implement it yourself in a custom extension which contributes additional commands.