You will need to setup different git remote end points for each application at Heroku so you can push to either application from the one local repo.
Get the GIT URLs for your apps on Heroku via the dashboard (it will look something similar to this: https://[email protected]:your_app_name.git
) and do:
git remote add test-app1 https://[email protected]:test-app1.git
git remote add test-app2 https://[email protected]:test-app2.git
git remote add test-app3 https://[email protected]:test-app3.git
Then you will be able to push to any specific app like this:
git push test-app1 master
git push test-app2 master
git push test-app3 master
fatal: Not a git repository
so I typedgit init
but now if I typegit remote add test-app1
I getusage: git remote add [<options>] <name> <url>
. What should I do? – Swarts