Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从命令行在github中创建pull请求_Git_Github - Fatal编程技术网

如何从命令行在github中创建pull请求

如何从命令行在github中创建pull请求,git,github,Git,Github,假设我对文件进行了一些更改,并将更改提交并推送到一个新的分支,然后推送到github,例如: git commit -m "some changes" git checkout -b testbranch git push --set-upstream origin testbranch 现在我想从命令行创建一个pull请求。我试过了 git request-pull testbranch git@github.com:alex4200/hello-world.git 但

假设我对文件进行了一些更改,并将更改提交并推送到一个新的分支,然后推送到github,例如:

git commit -m "some changes"
git checkout -b testbranch
git push --set-upstream origin testbranch
现在我想从命令行创建一个pull请求。我试过了

git request-pull testbranch git@github.com:alex4200/hello-world.git
但是这个说

warn: No match for commit a7c79dc732b3f00d6cf6ffe98e6c79de87110b7b found at git@github.com:alex4200/hello-world.git
warn: Are you sure you pushed 'HEAD' there?
但是我看到github上的提交位于给定分支下,具有给定的提交散列

我现在误解了什么

我现在误解了什么

您混淆了Git请求拉取和GitHub拉取请求

Git request pull字面上是给朋友的一条消息,要求他们从你那里取回。它与GitHub无关

您正在寻找轮毂工具:

有关安装说明,请参阅


如果不可能,请使用@Liam我将尝试。但是为什么像request pull这样的命令首先存在呢?值得注意的是,PRs不是GIT的东西。这是一个工作流程。GIT不是Workflow,而是源代码管理,因为GIT没有PR的概念。这是Github中的东西。就GIT而言,Pr只是一种合并concerned@Liam谢谢你的信息,但它不工作。我得到的信息是:找不到。我想我还需要提出另一个问题。。。