Git notes

Create a branch of your Linux Kernel sources

$ git init
$ git add .
$ git commit -m "Vanilla"
$ git branch acme
$ git checkout acme

Create a patch of your branch:

$ git checkout acme
$ git diff master > acme.patch

Apply a patch:

$ patch -p1 < filename.patch