git request-pull:如何在命令行上创建(github)拉取请求? [英] git request-pull: how to create a (github) pull request on the command line?

查看:220
本文介绍了git request-pull:如何在命令行上创建(github)拉取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经克隆了一个项目,并将仅具有重命名自述文件的分支推送到README。我正在尝试在命令行上创建请求请求,只是为了从此处而不是网站尝试PR。

I've cloned a project, and pushed a branch with just a renamed readme file to README. I am trying to create a pull-request on the command line, just to try PR from here instead of a website.

$ git request-pull origin/master origin readme:readme
The following changes since commit 51320a3a42f82ba83cd7919d24ac4aa5c4c99ac6:

  first commit message

are available in the git repository at:

  git@github.com:example/com:example.git readme

for you to fetch changes up to 891c05c5236341bcbe33ceddc415ae921ee42e44:

  second commit message

----------------------------------------------------------------
Simone Gentili (1):
      Fix

 readme.md => README.md | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename readme.md => README.md (100%)

github没有显示出拉取请求,也没有看到错误。

github shows no pull request and I don't see errors.


  • 是否可以直接从bash创建拉取请求?

  • PR是否正确,我是否可以查看拉请求列表?

推荐答案

即使它们被称为完全相同的东西,GitHub拉request和'git request-pull'完全不同。

Even though they are called exactly the same thing, a GitHub pull request and a 'git request-pull' are completely different.

git请求-pull用于生成要发送到邮件列表的未决更改的摘要。

The git request-pull is for generating a summary of pending changes to be sent to a mailing list. It has no integration by default with GitHub.

GitHub Pull Requests仅是GitHub的功能齐全。它允许合并和集成来自不同分支/分支的代码。您可以解决合并冲突,进行代码审阅或向GitHub拉取请求中添加其他注释。

The GitHub Pull Requests is a fully featured function of GitHub only. It allows for merging and integration of code from a different branch/fork. You can resolve merge conflicts, do code reviews, or add additional comments to a GitHub pull request.

不幸的是,git命令的命名与GitHub功能相似,听起来像他们应该做同样的事情。

Unfortunately the git command is named similarly to GitHub functionality which makes it sound like they should be doing the same thing.

这篇关于git request-pull:如何在命令行上创建(github)拉取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆