how to change heroku repository if you cahnge name code example Example: renaming heroku app $ git remote rm heroku $ heroku git:remote -a newname