cjm2671
cjm2671

Reputation: 19496

How can I contribute a patch to github?

I don't want to fork a project, but I would like to submit patches for inclusion; should I do this on the issue queue?

Upvotes: 17

Views: 5827

Answers (2)

Artefact2
Artefact2

Reputation: 7654

You should fork the project. In Github, this is very cheap. This way, you can push your changes how you want to your repository, and then make a pull request to have them included in the official repository.

You can then delete your fork after that.

Upvotes: 18

VonC
VonC

Reputation: 1328912

If you don’t fork a project, that means:

  • you clone the original repo directly;
  • you cannot push directly back to it (because you are not declared as a contributor).

Then you can indeed use the issue queue to reference a patch.
If said patch isn’t too big, you can directly copy/paste its textual form.
If not, you can copy it to some pastebin site and link it from your issue ticket.

Upvotes: 2

Related Questions