This repo was created in order to manage mock server requests
- Go to your repository root.
mock-server-one git:(master) $
- Check that you are having just Heroku remotes.
$ git remote -v
heroku https://git.heroku.com/mock-server-one.git (fetch)
heroku https://git.heroku.com/mock-server-one.git (push)
Otherwise, remove the extra remote reference.
$ git remote remove [remote name]
- Run these commands one by one:
$ git remote add all https://github.com/stevenperezGL/mockserver.git
$ git config -l | grep '^remote\.all'
$ git remote set-url --add --push all https://git.heroku.com/mock-server-one.git
$ git config -l | grep '^remote\.all'
$ git remote set-url --add --push all https://github.com/stevenperezGL/mockserver.git
$ git config -l | grep '^remote\.all'
- Check that you have this list of remotes:
$ git remote -v
all https://github.com/stevenperezGL/mockserver.git (fetch)
all https://git.heroku.com/mock-server-one.git (push)
all https://github.com/stevenperezGL/mockserver.git (push)
heroku https://git.heroku.com/mock-server-one.git (fetch)
heroku https://git.heroku.com/mock-server-one.git (push)
- Now you can push and pull to all remotes
$ git push all masterand$ git pull all master