16

In 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.

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

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

Yue Lin Ho
  • 2,945
  • 26
  • 36

1 Answers1

15

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.:

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

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.

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

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

See "coupe of tips for Pull Requests".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    But what is he process, I mean I wanna overplay the scenario: Someone ( Me with Tortoise GIT ) creates a pull request on: [link]https://github.com/dvdvideo1234/Test[/link] Then ( I reject the pull request ) Finally I amend the commit – Деян Добромиров Nov 18 '14 at 07:52
  • @ДеянДобромиров just what the doc say: you push first to a dedicated branch, and then fill out the fields Start (the version from which you started your dedicated branch), repo url and end (your dedicated branch). – VonC Nov 18 '14 at 07:55
  • Again nothing happens ... How do u think that I should add my Password ? P.S. I already tried "Credential", its not working. – Деян Добромиров Nov 18 '14 at 08:02
  • Do you have pushed to your remote repo first? And is your remote repo a GitHub one? – VonC Nov 18 '14 at 08:05
  • Where should I get that git://example.com/repo.git BRANCHNAME ?? – Деян Добромиров Nov 18 '14 at 08:08
  • git://example.com/repo.git is the url of your remote repo (it should use, I hope, https or ssh, like your own GitHub fork repo). BRANCHNAME is the name of the branch in which you did your modifications which will be part of the PR. – VonC Nov 18 '14 at 08:10
  • Start: master URL: git://github.com/dvdvideo1234/Test.git End: com-999 Click OK Not Valid revision com-999. – Деян Добромиров Nov 18 '14 at 08:40
  • 1
    @ДеянДобромиров don't use `git://`, it was only for their example. But GitHub repo would use https or ssh: https://help.github.com/articles/changing-a-remote-s-url/ – VonC Nov 18 '14 at 08:42
  • 1
    @ДеянДобромиров `com-999` would be the name of a local branch that you would have pushed first to your GitHub fork. Remember: your GitHuh repo needs to be a fork of another GitHub repo: https://help.github.com/articles/fork-a-repo/ – VonC Nov 18 '14 at 08:43