check heroku url in terminal' code example
Example 1: heroku git remote
heroku git:remote -a name-of-app
Example 2: heroku cli
$ brew tap heroku/brew && brew install heroku
heroku git:remote -a name-of-app
$ brew tap heroku/brew && brew install heroku