Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a Pull request using TortoiseGit

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)

like image 407
Деян Добромиров Avatar asked Nov 18 '14 07:11

Деян Добромиров


People also ask

What is pull in TortoiseGit?

The difference between pull and fetch is: Fetch just downloads the objects and refs from a remote repository and normally updates the remote tracking branches. Pull, however, will not only download the changes, but also merges them - it is the combination of fetch and merge (cf. the section called “Merging”).

How do I use TortoiseGit?

Right-Click in the File explorer within the repository and select TortoiseGit =>Create Branch. Name it enhancement and select the checkbox Switch to the new branch. Click Ok. Make a change to the file in the enhancement branch and commit the same.


1 Answers

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

like image 122
VonC Avatar answered Oct 19 '22 03:10

VonC