简体   繁体   English

推送到 Github 卡在 Rstudio

[英]Push to Github Stuck on Rstudio

While I am trying to push on GitHUb from rstudio it is stuck and is not reflecting on Github There might be some mismatch in the settings that I have configured watching tutorials.当我尝试从 rstudio 推送 GitHUb 时,它被卡住了并且没有反映在 Github 上我配置的观看教程的设置可能有些不匹配。

Error Screenshot错误截图

Git Settings Git 设置

Rstudio Options工作室选项

GitHub Account Settings GitHub 账户设置

Repository Settings存储库设置

I was facing the same issue while following one of the courses online.我在在线学习其中一门课程时遇到了同样的问题。 I don't know exactly what causes this issue.我不知道究竟是什么导致了这个问题。

Problem: Exactly the same with every setting as shown in the screenshot.问题:与屏幕截图中显示的每个设置完全相同。

The solution:解决方案:

  • in RStudio, click on the "Tools" menu and select "Shell"在 RStudio 中,单击“工具”菜单并选择“外壳”
  • Run the following command: git push运行以下命令:git push
  • it might ask you for your git username and password.它可能会询问您的 git 用户名和密码。 Supply this information, make sure it is correct提供这些信息,确保它是正确的
  • hopefully, the push is successful, then you can close the window希望推送成功,然后你可以关闭窗口
  • Now make some more edits to some files so that you have new content to push现在对某些文件进行更多编辑,以便您有新内容要推送
  • Click on the "push" button in RStudio and this time the push should work单击 RStudio 中的“推送”按钮,这次推送应该可以工作

This is not my solution I found it here: https://stackoverflow.com/a/45804117/5677883这不是我在这里找到的解决方案: https : //stackoverflow.com/a/45804117/5677883

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM