0

i would like the following

deploy dev

to be alias to

git checkout deploy/dev && git merge master && git push

so that dev is a parameter. thanks!

1

1 Answer 1

1
$ deploy () {
  git checkout deploy/"$1" && git merge master && git push
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .