You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can reproduce this on MacOS 11 Big Sur beta 10 with RStudio Desktop 1.4.940. Switching to a different branch in the IDE, such as master or creating a new branch, works fine. It's only when creating the branch outside of RStudio that the buttons are grayed out.
cd /tmp
git clone https://github.com/kevinushey/skeleton
cd skeleton
git checkout -b test-branch
open skeleton.Rproj
The problem is that the branch does not yet have a configured upstream:
$ /usr/local/bin/git rev-parse --abbrev-ref @{upstream}
fatal: no upstream configured for branch 'test-branch'
and so RStudio uses that as a signal that pushing and pulling is not possible, even though a plain git push does indeed work.
Activity
kevinushey commentedon Oct 21, 2020
Does it work after restarting RStudio?
csgillespie commentedon Oct 21, 2020
ronblum commentedon Oct 22, 2020
I can reproduce this on MacOS 11 Big Sur beta 10 with RStudio Desktop 1.4.940. Switching to a different branch in the IDE, such as master or creating a new branch, works fine. It's only when creating the branch outside of RStudio that the buttons are grayed out.
kevinushey commentedon Oct 22, 2020
Simpler reprex:
The problem is that the branch does not yet have a configured upstream:
and so RStudio uses that as a signal that pushing and pulling is not possible, even though a plain
git pushdoes indeed work.kevinushey commentedon Oct 22, 2020
It might be better to just always enable the Push + Pull buttons, and then propagate the error (if any) if attempts to push or pull fail.
kevinushey commentedon Oct 22, 2020
The workaround is to explicitly set the remote; a simple way is to just use
git push -uto set upstream and push.