Bruno
Bruno

Reputation: 6449

git push and git push heroku master in one step

Is there a way to execute git push and git push heroku master all in one line on the command prompt?

It is cumbersome and time-consuming to go git push, wait, wait, then git push heroku master

Upvotes: 1

Views: 100

Answers (2)

Jesse Wolgamott
Jesse Wolgamott

Reputation: 40277

Here's two ways:

In your shell (you don't have to wait, it'll execute these both one after the other):

git push origin master && git push heroku master

If you install the hub gem, you can push to origin and heroku (and more), like so:

hub push origin,heroku master

Upvotes: 3

OneChillDude
OneChillDude

Reputation: 8006

Why dont you just open a second shell? You can run git push in one shell, and git push heroku master in the other.

Upvotes: 1

Related Questions