Add drush alias with arguments
Drush will pass any extra argument in the shell alias to the command. So define the shell alias as:

$options['shell-aliases']['git-checkout'] = '!git checkout';


and simply run

drush @mysite.test git-checkout my_custom_branch