how to
-
create a patch
-
clone and create a new branch
$ git clone url_to_some_repo $ cd repo $ git checkout -b fix_sth
-
hack whatever you want
-
list you commits
$ git log --pretty=oneline -3
-
create a patch against master
$ git format-patch master --stdout > fix_sth.patch
-
-
apply a patch
-
what changes are in the patch
$ git apply --stat fix_sth.patch
-
test patch before actually apply it
$ git apply --check fix_sth.patch
-
am
allows you to sign off an applied patch$ git am --signoff < fix_sth.patch
-