libvcs icon indicating copy to clipboard operation
libvcs copied to clipboard

Git: add push url

Open jensens opened this issue 4 years ago • 1 comments

I need a way to add a push URL. At the moment at https://github.com/vcs-python/libvcs/blob/master/libvcs/git.py#L391 it is already possible to add an URL or overwrite one. But the --push parameter is not supported (see https://git-scm.com/docs/git-remote). I would like to be able do something like:

repo.set_remote("origin", "some-url", push=True)

I can provide an PR if this is something considered for merge.

jensens avatar Dec 19 '21 16:12 jensens

@jensens Yes, please add a PR! (And a test if you can!)

tony avatar Dec 19 '21 16:12 tony