I'm working with drush & 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';
drush @mysite.test git-checkout my_custom_branch
should checkout a specific branch.
Is there a way to do this?