chore: harden dual-remote git workflow

This commit is contained in:
Md Bayazid Bostame
2026-03-31 12:32:36 +02:00
parent 8f61e43e9b
commit 5867d85e96
4 changed files with 63 additions and 1 deletions

View File

@@ -104,6 +104,7 @@
</ul>
<pre><code>./scripts/git_remote_target.sh status</code></pre>
<p>Use the helper above before pushing if there is any doubt about which remote should receive the change.</p>
<p>Plain <code>git push</code> should default to <code>origin</code>, and a repo-local <code>pre-push</code> hook blocks accidental pushes to <code>tubco</code> unless the ref is an approved TUBCO branch or baseline tag.</p>
</div>
<div class="box">
<h3>Customer release branches</h3>
@@ -696,6 +697,7 @@ docker compose restart worker</code></pre>
<pre><code>./scripts/git_remote_target.sh set-own-identity
./scripts/git_remote_target.sh set-tubco-identity</code></pre>
<p>Switch between the normal commit identity and the TUBCO customer identity when needed.</p>
<p>For the TUBCO HTTPS remote, prefer a personal access token instead of a reusable account password.</p>
</div>
<div class="box">
<h3>Direct server deployment</h3>