| 56 | |
| 57 | == Patches == |
| 58 | === create patch from uncommitted stuff === |
| 59 | Write down die Hash of the last commit |
| 60 | do a temporary commit. |
| 61 | create the patch for the temporary commit: |
| 62 | {{{ |
| 63 | git format-patch -1 <Hash of the temporary commit> |
| 64 | }}} |
| 65 | reset the temporary commit: |
| 66 | {{{ |
| 67 | git reset --mixed <Hash of the commit before the temporary commit> |
| 68 | }}} |
| 69 | === Check and apply patch === |
| 70 | Check the patch: |
| 71 | {{{ |
| 72 | git apply --check <file.patch> |
| 73 | }}} |
| 74 | Apply the pathc with am (that allows to sign off the patch) |
| 75 | {{{ |
| 76 | git am --signoff <file.patch> |
| 77 | }}} |