Vamshi Suram Vamshi Suram - 28 days ago 29
Git Question

Applying code patch in GitHub

In GitHub, we can create branches, edit files, commit there itself.
I want to know if there is a way I can just copy patch into some editor block and it will apply to the repo's branch?

In short: I want to

git apply <somepatch>
on the GitHub website itself. Does GitHub give that functionality?

Answer

As of right now there is no way to apply patches through the GitHub website directly. You need to clone the repository, apply the patch, then push your changes yourself.

Comments