1.create API Key: heroku auth:token (or heroku authorizations:create for long lived api) 2.copy the api key. 3. Add/modify api key as password in the _netrc file and save the file.
git push heroku master
Add the details in authorization dialogue box.