<h1 id="git">Git</h1>
-<p>Set upstream:
-- <code>git push --set-upstream remote_name local_branch</code>
-- <code>git pull --set-upstream remote_name local_branch</code></p>
+<p>Set upstream:</p>
+<ul>
+<li><code>git push --set-upstream remote_name local_branch</code></li>
+<li><code>git pull --set-upstream remote_name local_branch</code></li>
+</ul>
<p>Delete branch:</p>
<ul>
<li><code>git branch -d xxx</code></li>
<li><code>git push MY_REMOTE --delete XXX</code></li>
<li><code>git push MY_REMOTE :XXX</code> (identical to above)</li>
</ul>
-<p>Move branch
-* <code>git checkout OLD_NAME</code>
-* <code>git branch -m NEW_NAME</code></p>
-<p>Active branch in a bare repository:
-* see <code>repo/HEAD</code> (and change it if needed)</p>
-<p>Create a new branch and switch to it:
-* <code>git checkout -b BRANCH</code></p>
-<p>Merge unrelated repositories:
-* <code>git pull ../other/ master --allow-unrelated-histories --no-rebase</code></p>
+<p>Move branch:</p>
+<ul>
+<li><code>git checkout OLD_NAME</code></li>
+<li><code>git branch -m NEW_NAME</code></li>
+</ul>
+<p>Active branch in a bare repository:</p>
+<ul>
+<li>see <code>repo/HEAD</code> (and change it if needed)</li>
+</ul>
+<p>Create a new branch and switch to it:</p>
+<ul>
+<li><code>git checkout -b BRANCH</code></li>
+</ul>
+<p>Merge unrelated repositories:</p>
+<ul>
+<li><code>git pull ../other/ master --allow-unrelated-histories --no-rebase</code></li>
+</ul>
<h2 id="submodules">Submodules</h2>
-<p>At start:
-* <code>git clone XXX --recurse-submodules</code></p>
-<p>At new one:
-* git submodule add https://github.com/... path
-* <code>./</code> is allowed, <code>.</code> is not <em>but only on remote paths, not local paths</em>
-* <code>../other-prj.git</code> is also allowed</p>
-<p>Manually:
-* git submodule init
-* git submodule update (--recursive)</p>
-<p>Or in one command:
-* git submodule update --init (--recursive)</p>
-<p>If problems:
-* git submodule deinit (--all)</p>
-<p>If head detached:
-* <code>git branch -u <origin>/<branch> <branch></code>
-* <code>git checkout -b <branch> --track <origin>/<branch></code></p>
+<p>At start:</p>
+<ul>
+<li><code>git clone XXX --recurse-submodules</code></li>
+</ul>
+<p>At new one:</p>
+<ul>
+<li>git submodule add https://github.com/... path</li>
+<li><code>./</code> is allowed, <code>.</code> is not <em>but only on remote paths, not local paths</em></li>
+<li><code>../other-prj.git</code> is also allowed</li>
+</ul>
+<p>Manually:</p>
+<ul>
+<li>git submodule init</li>
+<li>git submodule update (--recursive)</li>
+</ul>
+<p>Or in one command:</p>
+<ul>
+<li>git submodule update --init (--recursive)</li>
+</ul>
+<p>If problems:</p>
+<ul>
+<li>git submodule deinit (--all)</li>
+</ul>
+<p>If head detached:</p>
+<ul>
+<li><code>git branch -u <origin>/<branch> <branch></code></li>
+<li><code>git checkout -b <branch> --track <origin>/<branch></code></li>
+</ul>
<p>The <code>git submodule sync</code> will update your config file with the details from the .gitmodules file, so the latter should be considered the 'master'.</p>
<script src="../assets/javascripts/bundle.c8d2eff1.min.js"></script>
- <script src="../https:/unpkg.com/mermaid@10.7.0/dist/mermaid.min.js"></script>
+ <script src="../assets/external/unpkg.com/mermaid@10.7.0/dist/mermaid.min.js"></script>
</body>
+++ /dev/null
-#!/bin/sh
-
-DDIR=/home/user/Notes
-
-if [ "$1" = "" ]; then
- # Host
- cd "`dirname "$0"`"
- if [ $? != 0 ]; then
- echo Cannot find directory \
- | tee mkdocs/error.txt >&2
- exit 42
- fi
- cd ..
- rm -f mkdocs/ok mkdocs/error.txt
- touch mkdocs/wip
- OPTS="-v $PWD:$DDIR:rw" /opt/docker/launch.sh \
- --start $DDIR/mkdocs/update.sh mkdocs \
- build
- echo
- echo Leaving docker machine...
- echo
- [ -e mkdocs/ok ] ; rep=$? ; rm -f mkdocs/ok
- if [ $rep = 0 ]; then
- echo Copying to remote site...
- cd mkdocs/site
- git add .
- if [ $? != 0 ]; then
- echo Failure to add newly built html site \
- | tee mkdocs/error.txt >&2
- exit 20
- fi
- git commit -m "`date +"Auto commit %Y-%m-%d %H:%M"`"
- if [ $? != 0 ]; then
- echo Failure to commit to git \
- | tee mkdocs/error.txt >&2
- exit 21
- fi
- git push nikiroo html
- if [ $? != 0 ]; then
- echo Failure to push html branch to nikiroo \
- | tee mkdocs/error.txt >&2
- exit 22
- fi
- else
- echo Failed to update, no remote copy started: $rep \
- | tee mkdocs/error.txt >&2
- fi
- rm -f mkdocs/wip
- exit $rep
-fi
-
-# Docker
-echo
-echo Entering docker machine...
-echo
-
-cd
-cp "$DDIR/mkdocs/mkdocs.yml" "$HOME/" || exit
-ln -s "$DDIR" docs || exit
-mkdocs build -d "$DDIR"/mkdocs/site || exit
-touch "$DDIR/mkdocs/ok"
-