Refactor to use a get_remote() command so that it can be easier to retrieve the matching URL.

Want to be able to expose an option to push to the remote branch but hard to do so without knowing the remote URL.