Archive all projects on Github

github gitlab sourcehut git
<p>I'm switching most code off Github to GitLab and Sourcehut. To do so I installed the Github cli, authenticated then ran:</p> <pre><code>gh repo list &lt;username&gt; --limit 1000 | awk '{NF=1}1' | while read in; do gh repo archive -y &quot;$in&quot;; done </code></pre> <p>From: https://stackoverflow.com/questions/62170138/how-can-i-batch-archive-all-github-repositories-in-my-account</p>

© 2026 Code0x378