I was facing two issues when using git from within RStudio on DSX:
- pushing commits on new local branches does not work: open a project in RStudio, create a new local branch (system("git branch testBranch")), commit some changes to this branch (via the RStudio GUI), try to push this branch to the remote repo (via gui is not possible/available, via system("git push") neither)
- fetching new remote branches does not work (via system("git fetch")
Both resulting in the error:
> error: cannot run rpostback-askpass: No such file or directory
> fatal: could not read Username for 'https://github.com': No such device or address**
It seems also much harder to troubleshoot this since the shell is disabled and only the only available workaround is via the R console via system("git ...").