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
$ deploy () {
  git checkout deploy/"$1" && git merge master && git push
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.