Skip to main content

Command Palette

Search for a command to run...

How to git push heroku master

Updated
1 min read

When pushing code to a repository hosted on Heroku one need to use the following command

 git push heroku master

in the above command What do heroku and master

“heroku” is a shorthand name for the remote repository that a project was originally cloned from. it is used instead of that original repository’s URL – and thereby makes referencing much easier.

“master” is a naming convention for a branch. After cloning (downloading) a project from a remote server, the resulting local repository has a single local branch: the so-called “master” branch. This means that “master” can be seen as a repository’s “default” branch.

git push heroku master