<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git on ThetaSigma Labs</title><link>http://thetasigma.org/tags/git/</link><description>Recent content in Git on ThetaSigma Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 ThetaSigma Labs</copyright><lastBuildDate>Sat, 16 May 2026 21:24:05 -0300</lastBuildDate><atom:link href="http://thetasigma.org/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Github_push_and_tag</title><link>http://thetasigma.org/lab-notes/github_push_and_tag/</link><pubDate>Sat, 16 May 2026 21:24:05 -0300</pubDate><guid>http://thetasigma.org/lab-notes/github_push_and_tag/</guid><description>&lt;h2 class="relative group"&gt;Option A — Squash all commits into one before pushing
 &lt;div id="option-a--squash-all-commits-into-one-before-pushing" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#option-a--squash-all-commits-into-one-before-pushing" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git checkout --orphan release
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git add -A
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git commit -m &lt;span style="color:#e6db74"&gt;&amp;#34;Beta_1.0.1&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git branch -D main
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git branch -m main
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git push origin main --force&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This replaces the entire history with a single clean commit.&lt;/p&gt;

&lt;h2 class="relative group"&gt;Option B — GitHub Releases (tag-based, history stays)
 &lt;div id="option-b--github-releases-tag-based-history-stays" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#option-b--github-releases-tag-based-history-stays" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;If the goal is just to publish a versioned release ZIP for users to download (not hide commits), use GitHub Releases:&lt;/p&gt;</description></item></channel></rss>