mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
docs: add git tips how to do commit fixups and squash them
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
ba28f2136f
commit
6dae5be806
1 changed files with 7 additions and 0 deletions
|
|
@ -337,6 +337,13 @@ be rejected:
|
|||
<h2 id="gittips">Git tips</h2>
|
||||
|
||||
<ul>
|
||||
<li><code>git rebase -i ...</code> is your friend. Don't be afraid to use it.
|
||||
<li>Apply a fixup to commit FOO.
|
||||
<pre>
|
||||
git add ...
|
||||
git commit --fixup=FOO
|
||||
git rebase -i --autosquash ...
|
||||
</pre>
|
||||
<li>Test for build breakage between patches e.g last 8 commits.
|
||||
<pre>
|
||||
git rebase -i --exec="make -j4" HEAD~8
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue