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

From Nasqueron Agora
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:


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

Revision as of 17:36, 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