Check out example codes for "rename heroku app". It will help you in understanding the concepts better.

Code Example 1

First update the name for the heroku app on the heroku dashboard (on the heroku website) Then do this on terminal (Make sure you're in the right repository)  $ git remote rm heroku (Remove the remote from git) $ heroku git:remote -a <new app name> (Add it back with it's new name)

Code Example 2

$ git remote rm heroku $ heroku git:remote -a newname

Code Example 3

$ heroku apps:rename newname Renaming oldname to newname... done | [email protected]:newname.git Git remote heroku updated

Learn ReactJs, React Native from