The coefficient matrix is
\begin{align*}
A = \begin{pmatrix}a&1\\2a&2\end{pmatrix},
\qquad T = a + 2, \quad D = 2a - 2a = 0.
\end{align*}
Since \(D = 0\) for every \(a\text{,}\) the eigenvalues are \(\lambda_1 = 0\) and \(\lambda_2 = a + 2\text{.}\) The origin is never an isolated equilibrium. Instead, the equilibria form the line \(ax + y = 0\text{,}\) which is the eigenspace for \(\lambda_1 = 0\) and is spanned by \(\mathbf{v}_1 = (1, -a)^T\text{.}\) For \(\lambda_2 = a + 2\) the eigenvector is \(\mathbf{v}_2 = (1, 2)^T\text{,}\) since \(A\mathbf{v}_2 = (a+2)(1,2)^T\text{.}\)
The type of phase portrait changes when
\(\lambda_2 = a+2\) changes sign, so the bifurcation occurs at
\(a = -2\text{.}\)
Case \(a \lt -2\text{.}\) Here \(\lambda_2 \lt 0\text{,}\) and the general solution is
\begin{gather*}
\mathbf{x}(t) = c_1\begin{pmatrix}1\\-a\end{pmatrix}
+ c_2 e^{(a+2)t}\begin{pmatrix}1\\2\end{pmatrix}.
\end{gather*}
Every trajectory is a half-line parallel to \((1,2)^T\) that moves toward the line of equilibria \(y = -ax\) and approaches it as \(t \to \infty\text{.}\) Every equilibrium is stable, though not asymptotically stable, since a nearby solution converges to a nearby equilibrium.
Case \(a \gt -2\text{.}\) Here
\(\lambda_2 \gt 0\text{.}\) The trajectories are the same half-lines parallel to
\((1,2)^T\text{,}\) but they move away from the line of equilibria
\(y = -ax\text{,}\) and every equilibrium is unstable.
Case \(a = -2\text{.}\) Now \(A = \begin{pmatrix}-2&1\\-4&2\end{pmatrix}\) has the double eigenvalue \(0\) with only one eigenvector \((1,2)^T\text{,}\) and \(A^2 = 0\text{.}\) The line of equilibria is \(y = 2x\text{,}\) which is now parallel to the direction of \(\mathbf{v}_2\text{.}\) Setting \(u = y - 2x\) gives \(u' = 0\text{,}\) so \(u\) is constant and \(x' = u\text{.}\) Hence
\begin{gather*}
x = x_0 + ut, \qquad y = 2x + u.
\end{gather*}
Each trajectory is a line parallel to \(y = 2x\text{,}\) traversed at constant speed. The direction of motion is \((1,2)\) when \(y \gt 2x\) and \((-1,-2)\) when \(y \lt 2x\text{.}\) This is a shear flow, and no trajectory approaches the line of equilibria.
In summary, for
\(a \neq -2\) the phase portrait consists of a line of equilibria with all other trajectories parallel to
\((1,2)^T\text{,}\) pointing toward the line when
\(a \lt -2\) and away from it when
\(a \gt -2\text{.}\) At the bifurcation value
\(a = -2\) the line of equilibria becomes parallel to the trajectories and the flow becomes a shear.