How can I place node at the intersection of I and C node (I |- C)? MWE:
\documentclass[border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{chains}
\usetikzlibrary{arrows,chains,positioning,shapes,scopes}
\begin{document}
\begin{tikzpicture}
[>=latex,node distance=.8cm,
start chain =going below,]
\tikzset{base/.style = {
draw,rounded corners,minimum width=20mm, minimum height=6mm, align=center,
inner sep=1mm, outer sep=0mm,
on chain, join=by {->}}}
\tikzset{start/.style={base,minimum size=6mm,circle,fill=black}}
\tikzset{end/.style={base,circle}}
\tikzset{box/.style={base}}
\tikzset{decision/.style={base,rounded corners=0,minimum size=6mm,diamond,aspect=1.5,on chain}}
{
\node[start] (A) {};
\node[box] (B) {clone repository};
\node[box] (C) {coding};
\node[box] (D) {commit locally};
\node[box] (E) {review};
\node[decision] (F) {};
{[start branch]
\node[box,left=2cm of F] (G) {rework};
\node[box,on chain=going above] (H) {recommit};
}
{[start branch]
\node[box,right=2cm of F] (I) {submit};
\coordinate (O) at (I |- C);
\node[box] at (O) (J) {update local repository};
}
\draw[->] (H) -- (E);
\draw[->] (J) -- (C);
% debug code line
\draw[red] (O) -- (I) (O) -- (C);
}
\end{tikzpicture}
\end{document}
\documentclass{...}
and ending with\end{document}
. Don't forget to put in preamble necessary libraries and packages ... – Zarko Jul 12 '17 at 20:50