Proof (concatenation preserves homotopicity as paths)

Let $H: [0,1]\times [0,1] \to X$ be a relative homotopy from $γ_0$ to $γ_1$, and $H': [0,1]\times [0,1] \to X$ be a relative homotopy from $γ_0'$ to $γ_1'$.

Construct a relative homotopy from $γ_0\cdot γ_1$ to $γ_0'\cdot γ_1'$ $$ \begin{align*} \tilde H(s, t) = \begin{cases} H(2s, t), &0\leq s\leq \frac12, \\ H'(2s-1, t), &\frac12\leq s\leq 1, \end{cases} \end{align*} $$ which is well-defined as $H(1,t) = x_1 = H'(0,t)$. It is continuous by the gluing lemma.