【发布时间】:2017-11-12 01:33:02
【问题描述】:
我正在尝试使用 R 包 blogdown 创建博客。 最后一步是将我的文件推送到 Github,然后我点击了“Push Branch”, 这给了我这个错误信息:
我对 Git/Github 与 R Studio 的集成不是很有经验。有人可以详细说明该怎么做吗?
【问题讨论】:
-
你需要设置一个远程仓库。
我正在尝试使用 R 包 blogdown 创建博客。 最后一步是将我的文件推送到 Github,然后我点击了“Push Branch”, 这给了我这个错误信息:
我对 Git/Github 与 R Studio 的集成不是很有经验。有人可以详细说明该怎么做吗?
【问题讨论】:
语法
您可以像这样将远程 git 服务器 URL 添加到本地 git 存储库配置
git remote add origin your_git_repository_url
示例
在git本地仓库文件夹,发布命令:
git remote add origin https://github.com/donhuvy/java9.git
了解详情
https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes#_adding_remote_repositories(官方参考文档)
【讨论】: