Add `git_remote_dup`.

This adds `git_remote_dup`, which makes implementing push or fetch commands that optionally takes a list of refspecs much easier.