commit - ec51d4a3d8c89754349e906827f09f5fb7861095
commit + 83f7eddbfbf66c0a2ffecc4639c6da642711bd7e
blob - 65a9fb17ac24441e1cbd70f290b3cf962eb88dc9
blob + ca4d5414298958bb38decbc4ae8dc03a7011dad9
--- examples.html
+++ examples.html
<p>
As a first step, Got can create another commit which undoes the changes
-made by the latest commit. Assuming a branch called <tt>master</tt>,
+made by the latest commit. Assuming a branch called <tt>main</tt>,
the latest commit on this branch can be identified by the same
-name (<tt>master</tt>).
+name (<tt>main</tt>).
In a clean work tree according to <tt>got status</tt>, run:
<pre class="cmdbox">
-$ <b>got backout master</b>
+$ <b>got backout main</b>
$ <b>got commit -m 'oops, roll back previous change'</b>
</pre>
change into the work tree as a local change which can be amended:</p>
<pre class="cmdbox">
-$ <b>got backout master</b>
+$ <b>got backout main</b>
(edit files)
$ <b>got commit -m 'fixed version of previous change'</b>
</pre>
<pre class="cmdbox">
$ <b>got log -l 3</b>
-----------------------------------------------
-commit bcb49d15e041ddffb59397d2fe851fdb1729b005 (master)
+commit bcb49d15e041ddffb59397d2fe851fdb1729b005 (main)
from: Flan Hacker <flan_hacker@openbsd.org>
date: Wed Aug 14 22:07:22 2038 UTC
<pre class="cmdbox">
$ <b>got log -l 4 | grep ^commit| tail -n 1</b>
-commit e27a7222faaa171dcb086ea0b566dc7bebb74a0b (origin/master)
+commit e27a7222faaa171dcb086ea0b566dc7bebb74a0b (origin/main)
</pre>
<p>
<pre class="cmdbox">
$ <b>got log -l 1</b>
-----------------------------------------------
-commit 60b83404dd25547f19d9b468b931809541a3325c (master)
+commit 60b83404dd25547f19d9b468b931809541a3325c (main)
from: Flan Hacker <flan_hacker@openbsd.org>
date: Wed Aug 14 22:17:12 2038 UTC