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