Set up upstream repo without push() · Issue #133 · ropensci/git2r (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
(Would be solved by #131)
Is it possible to link a local branch with a remote branch without performing a push? I'm working on devtools::use_github()
, and I'd like to be able to at least set up the repo so that you can push from RStudio. Currently:
git2r::remote_add(r, "origin", create$ssh_url) git2r::branch_set_upstream(head(r), "origin/master")
Error in git2r::branch_set_upstream(head(r), "origin/master") :
Error in 'git2r_branch_set_upstream': Cannot set upstream for branch 'master'
What am I doing wrong?
Metadata
Development
No branches or pull requests