Faced this a few times now that I am on a new laptop…moving an existing repository and app to a new location. It’s really a two step process:
Pull the existing Git repo into the new location:
git clone firstname.lastname@example.org:.git
Change the Heroku configuration on the existing repo (not sure if I explained that quite right):
cd git remote rm heroku (this may fail, no worries) git remote add heroku email@example.com:.git
You can also use
git remote -v
to understand what is being pushed where.