0

Environment: Mac OSX 10.10

It's a simple question, but I am not familiar with it. Here is what I want, I want to make a commend like gpgh, and it will do git push and then git push heroku master.

I wrote a bash and put those two command into it, and I could use bash ./gpgh.bash to execute. But how do I make a easy way, just type gpgh to do this feature ?

2 Answers 2

3

Just add this into your bash profile.

alias gpgh='git push; git push heroku master' 
Sign up to request clarification or add additional context in comments.

Comments

1

You should be able to do this: alias gpgh="git push && git push heroku master". If you add that to your .bash_profile it'll persist.

1 Comment

Thank, you've been a great help.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.