meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| git:patch [2016/02/22 09:38] – created niziak | git:patch [2020/06/03 11:16] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== patch ====== | ||
| + | |||
| + | ====== Applying ====== | ||
| + | Check and apply the patch: | ||
| + | <code bash> | ||
| + | git apply --stat fix_empty_poster.patch | ||
| + | git apply --check fix_empty_poster.patch | ||
| + | git am --signoff < fix_empty_poster.patch | ||
| + | </ | ||
| + | |||
| + | ====== Create ====== | ||
| + | ===== last commit ===== | ||
| + | <code bash>git format-patch -1</ | ||
| + | |||
| + | ===== current branch and master branch ===== | ||
| + | <code bash>git format-patch gitlab/ | ||
| + | |||
| === squash all commits === | === squash all commits === | ||
| <code bash> | <code bash> | ||
| Line 9: | Line 26: | ||
| <code bash> | <code bash> | ||
| git format-patch -M -s master | git format-patch -M -s master | ||
| + | </ | ||
| + | |||
| + | This will generate patch files in the '' | ||
| + | <code bash> | ||
| + | git format-patch -M -n -s -o outgoing origin/ | ||
| </ | </ | ||