Setting Git Remote URL for existing Applications

Use
git remote add origin {git repository path}'

For overwriting existing application in Heroku, go the application folder and issue
git remote add heroku {heroku repository path}.

Don't forget to login to heroku before issuing the command.

To list and check the remote URLs:
git remote

git remote show origin  
git remote show heroku