Usegit remote add origin {git repository path}'
For overwriting existing application in Heroku, go the application folder and issuegit 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