Add drush alias with arguments I'm working with drush &amp; git and I would like to create a custom drush alias to perform a "git pull" action on a remote server.

This is possibile creating a drushrc.php file in drush home directory with this command:

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


So if I run 

drush @mysite.test git-checkout


the system performs a "git checkout" on the test server.

The problem is that I would like to send parameters, like:

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


and so:

drush @mysite.test git-checkout my_custom_branch


should checkout a specific branch.

Is there a way to do this?
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