gert icon indicating copy to clipboard operation
gert copied to clipboard

Option to set two remotes?

Open robitalec opened this issue 4 years ago • 0 comments

If I want to mimic the following git commands

git remote set-url origin --push --add https://github.com/robitalec/test
git remote set-url origin --push --add https://github.com/robitalec/test2

with gert

library(gert)

git_remote_set_pushurl(
	url = 'https://github.com/robitalec/test',
	remote = 'origin',
	repo = "."
)

git_remote_set_pushurl(
	url = 'https://github.com/robitalec/test2',
	remote = 'origin',
	repo = "."
)

It replaces the first remote URL with the second URL. This is expected, because we didn't provide the --add flag. I'm wondering if there's a way to include the --add flag in git_remote_set_pushurl so both URLs added to the git config?

Thanks!

robitalec avatar Feb 19 '21 04:02 robitalec