Operations grimoire/Git operations in production containers: Difference between revisions

From Nasqueron Agora
(Created page with "== When deployed code diverge than upstream == # Create a <code>production</code> branch to store any edited code # Document on the grimoire the need to rebase this productio...")
 
Line 8: Line 8:
If you need to quickly use Git in production, use the following commit references if you use a shared ops account:
If you need to quickly use Git in production, use the following commit references if you use a shared ops account:


<code>
<pre>
$ cat > ~/.gitconfig
$ cat > ~/.gitconfig
[user]
[user]
         email = ops-noreply@nasqueron.org
         email = ops-noreply@nasqueron.org
         name = Nasqueron Operations
         name = Nasqueron Operations
</code>
</pre>

Revision as of 15:26, 25 July 2016

When deployed code diverge than upstream

  1. Create a production branch to store any edited code
  2. Document on the grimoire the need to rebase this production branch against upstream relevant branch (generally master)

Git configuration

If you need to quickly use Git in production, use the following commit references if you use a shared ops account:

$ cat > ~/.gitconfig
[user]
        email = ops-noreply@nasqueron.org
        name = Nasqueron Operations