for why we need to use git for deployment in Heroku code example
Example 1: git push to heroku
$ git push heroku master
Example 2: heroku and github on termi
$ git remote rename heroku heroku-staging
$ git push heroku master
$ git remote rename heroku heroku-staging