Use git switch instead of git checkout for modern git usage

This commit is contained in:
Gary Wang 2022-07-27 08:19:41 +02:00
parent f5f9eb0860
commit 7284ff36f0

View file

@ -128,7 +128,7 @@
<div class="codeberg-divider"><hr>or<hr></div>
<p>
Create a branch <code class="code">pages</code> in a repository:<br>
<code class="code">git checkout --orphan pages</code><br><code class="code">git rm --cached -r .</code>
<code class="code">git switch --orphan pages</code>
</p>
</div>
<div class="col-lg text-center">