In Linux we trust!

Quick patching in Git

Sometimes i need to migrate hotfix patch from readonly repository, in that case:

# git diff --no-prefix > my.patch

On host with repository to want migrate patch to:

$ patch -p0 < my.patch
$ git status
$ rm -f my.patch
$ git add .
$ git commit -m patched

That's all folks!