4

is it possible to push a formatted patch directly to remote server without even cloning the repo?
Something like:

git push http://git:mr/android.git master 0001-patch.patch
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
MTZ4
  • 2,274
  • 2
  • 25
  • 41

1 Answers1

2

You cannot apply a patch on a remote natively, through some kind of specif "push".

You would need to implement a listener which would detect a patch and apply it (like applying patches from emails, mentioned in "Git Tip of the Week: Patches by Email").

But more generally, this isn't trivial to implement because of potential conflicts which might have to be resolved when applying the patch: this is much easier to do in a local cloned repo.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250