git 如何使用 TortoiseGit 发出拉取请求

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26988891/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 10:34:35  来源:igfitidea点击:

How can I make a Pull request using TortoiseGit

gitrepositorytortoisegit

提问by Деян Добромиров

In TortoiseGit

在 TortoiseGit 中

When I hit Right Click -> Push, OK, Give it User/Pass then after that there is a Create Pull request button giving it a Start, URL, End. I am clicking, but nothing happens.

当我点击 Right Click -> Push,OK,Give it User/Pass 然后有一个 Create Pull request 按钮给它一个开始,URL,结束。我正在点击,但没有任何反应。

The Pull requests (0) is shown in my repo.

拉取请求 (0) 显示在我的仓库中。

And one other thing, How can I make a pull request and then update it as necessary using the same software (TortoiseGit)

另一件事,我如何发出拉取请求,然后根据需要使用相同的软件(TortoiseGit)更新它

采纳答案by VonC

The doc mentions:

该文档提到

After pushing your changes to a (public) repository, you just provide other people the URL of your repository and the name of the branch or the revision id.
E.g.:

将更改推送到(公共)存储库后,您只需向其他人提供存储库的 URL 和分支名称或修订 ID。
例如:

git://example.com/repo.git BRANCHNAME

http://tortoisegit.org/docs/tortoisegit/images/RequestPull.png

http://tortoisegit.org/docs/tortoisegit/images/RequestPull.png

  • Start: This should be the revision on which your changes are based on.
  • URL: The public URL to your repository, which can be access by the people who shall pull your changes.
  • End: This should be the branch name or revision id of the end of your commits.
  • 开始:这应该是您的更改所基于的修订。
  • URL:您的存储库的公共 URL,可以由拉取您更改的人员访问。
  • End:这应该是提交结束的分支名称或修订 ID。

Once a PR is created on that public repo, you can update it (at least for GitHub) by pushing in that same branch.

在该公共存储库上创建 PR 后,您可以通过推送同一个分支来更新它(至少对于 GitHub 而言)。

I would recommend notusing master, but a dedicated branch for that PR (here in the picture: 'issue-993', which started from the version origin/master).

我建议不要使用 master,而是使用该 PR 的专用分支(在图片中:' issue-993',从 version 开始origin/master)。

See "coupe of tips for Pull Requests".

请参阅“拉取请求的技巧”。