Currently my git aliases all have to depend on the arguments being passed in a specific order, accessing them with $1
, $2
, etc.
What I would want to do is something like
git sync --from="dev" --to="uat"
Where sync
is the alias where I would want to access the values of $from
and $to
Is this possible in some way?
EDIT - This is not a question of how to use existing git commands with named parameters in aliases. I'm already using the "sync = !sh -c '<bunch of commands here>'"
format to handle this. I want to create my own custom parameters for my aliases so I don't have to use $1
, $2
, $3
in my script.