canmove, Confirmed users, Bureaucrats and Sysops emeriti
4,747
edits
| Line 58: | Line 58: | ||
<pre> | <pre> | ||
git checkout myfeature // switch to myfeature branch if not already on it | git checkout myfeature // switch to myfeature branch if not already on it | ||
git rebase -i master // Rewrite commits to a single one | |||
git show --format='From: %an <%ae>%n%s%n%b' > mypatch.diff // Create the patch | git show --format='From: %an <%ae>%n%s%n%b' > mypatch.diff // Create the patch | ||
</pre> | </pre> | ||