# NOT RUN {
# Display the current remotes
wflow_git_remote()
# Add a remote called origin that points to the
# GitHub repository example_repo owned by
# the GitHub user example_user
wflow_git_remote("origin", "example_user", "example_repo")
# Remove the remote named upstream
wflow_git_remote("upstream", action = "remove")
# Change the protocol of the remote origin from https to ssh
wflow_git_remote("origin", "example_user", "example_repo", protocol = "ssh",
action = "set_url")
# Add a remote called origin that points to the
# GitLab repository example_repo owned by
# the GitLab user example_user
wflow_git_remote("origin", "example_user", "example_repo", domain = "gitlab.com")
# }
Run the code above in your browser using DataLab