似乎你必须与github.com交互来发起一个拉请求。是这样吗?
当前回答
更新:hub命令现在是一个官方的github项目,也支持创建拉请求
原:
似乎在hub命令中添加一个特别有用的东西:http://github.com/defunkt/hub或github gem: http://github.com/defunkt/github-gem
我建议将问题提交给那些需要它的项目。github的人都很有反应。
其他回答
更新:hub命令现在是一个官方的github项目,也支持创建拉请求
原:
似乎在hub命令中添加一个特别有用的东西:http://github.com/defunkt/hub或github gem: http://github.com/defunkt/github-gem
我建议将问题提交给那些需要它的项目。github的人都很有反应。
使用Hub命令行包装器,您可以将其链接到git,然后就可以执行 git pull请求
从hub的手册页:
git pull-request [-f] [TITLE|-i ISSUE|ISSUE-URL] [-b BASE] [-h HEAD]
Opens a pull request on GitHub for the project that the "origin" remote points to. The default head of the pull request is the current branch. Both base and head of the pull request can be explicitly given in one of the following formats: "branch", "owner:branch",
"owner/repo:branch". This command will abort operation if it detects that the current topic branch has local commits that are not yet pushed to its upstream branch on the remote. To skip this check, use -f.
If TITLE is omitted, a text editor will open in which title and body of the pull request can be entered in the same manner as git commit message.
If instead of normal TITLE an issue number is given with -i, the pull request will be attached to an existing GitHub issue. Alternatively, instead of title you can paste a full URL to an issue on GitHub.
Git现在附带子命令' Git request-pull' [-p] <start> <url> [<end>]
你可以在这里看到文件
你可能会发现这很有用,但它与GitHub的功能并不完全相同。
你可以安装github官方CLI来创建PR和做其他事情。
设置:
Gh auth登录
创建PR:
Gh pr创造
合并:
GH 公关合并
我最近创建了一个工具,它完全是你想要的:
https://github.com/jd/git-pull-request
它在一个单一的命令中自动完成一切,分叉回购,推动PR等。它还支持更新PR,如果你需要编辑/修复它!
推荐文章
- Github:我能看到回购的下载数量吗?
- 如何配置Mac OS X术语,使git有颜色?
- Visual Studio Code: .git文件夹/文件隐藏
- “node_modules”文件夹应该包含在git存储库中吗
- 为什么git-rebase给了我合并冲突,而我所做的只是压缩提交?
- 如何运行一个github-actions步骤,即使前一步失败,同时仍然失败的工作
- 当我试图推到原点时,为什么Git告诉我“没有这样的远程‘原点’”?
- 在GitHub repo上显示Jenkins构建的当前状态
- 如何从远程分支中挑选?
- 如何查看一个分支中的哪些提交不在另一个分支中?
- 如何取消在github上的拉请求?
- HEAD和master的区别
- GIT克隆在windows中跨本地文件系统回购
- RPC失败;卷度传输已关闭,剩余未完成的读取数据
- 我应该在.gitignore文件中添加Django迁移文件吗?