I want to change the Git default remote branch destination so I could just
git push
Instead of:
git push upstream
>
git remote set-url --push origin should work, as you mentioned, but you need to explicitly provide the url instead of an alternative remote name, e.g.
git remote set-url --push origin git@github.com:contributor/repo.git
You can confirm whether this worked by doing a git remote -v. E.g.
λ ~/go/src/github.com/stretchr/testify/ master git remote -v
fork git@github.com:contributor/testify.git (fetch)
fork git@github.com:contributor/testify.git (push)
origin git@github.com:stretchr/testify (fetch)
origin git@github.com:contributor/testify.git (push)