mzakaria mzakaria - 12 days ago 4x
Git Question

Pushing Git commits through RStudio

I have started to use Git package inside RStudio . It seems to work fine for Master branch. But adding another branch, you can commit any changes through the GUI but the "push" button doesn't work. Any thoughts how this can be fixed? I can do the push through the terminal but not GUI.


As per Hadley's explanation:

If you try to synchronise this [new] branch to GitHub from inside RStudio, you’ll notice that push and pull are disabled. To enable them, you’ll need to first tell Git that your local branch has a remote equivalent:

git push --set-upstream origin <branch-name> After you’ve done that once, you can use the pull and push buttons as usual.