This is an attempt to answer the updated question. I learned a lot from this post.
\documentclass{article}
\usepackage[all]{genealogytree}
\begin{document}
\begin{tikzpicture}
% Tree for the common husband with descendents
% h=husband
% w=wife
% w2-h1=2nd wife's 1st husband
% c=child
\genealogytree{
child{
g[male]{h1}
p[female]{w1}
union{
p[female,id=wife2]{w2}
c{h1-w2's c}
}
c{w1-h1's c}
}
}
\genealogytree[set position=wife at wife2]{
child{
g[female,id=wife]{w2}
p[male]{w2-h2}
}
}
\end{tikzpicture}
\end{document}

ANSWER TO MY INTERPRETATION OF THE FIRST VERSION OF THE QUESTION: This is more or less copied from p. 67 of the manual.
\documentclass{article}
\usepackage[all]{genealogytree}
\begin{document}
\begin{genealogypicture}
child{
p[female]{w1}
g[male]{h1}
c{w1-h1's c}
union{
p[female]{w2}
c{w2-h1's c}
}
}
\end{genealogypicture}
\end{document}

Of course, you can rearrange it as follows:
\documentclass{article}
\usepackage[all]{genealogytree}
\begin{document}
\begin{genealogypicture}
child{
g[male]{h1}
union{
p[female]{w1}
c{w1-h1's c}
}
p[female]{w2}
c{w2-h1's c}
}
\end{genealogypicture}
\end{document}

It even works in extreme situations.
\documentclass{article}
\usepackage{pdflscape}
\usepackage[all]{genealogytree}
\begin{document}
\begin{landscape}
\begin{genealogypicture}
child{
g[male]{Henry VIII}
union{
p[female]{Catherine of Aragon}
c{Mary I}
}
union{
p[female]{Anne Boleyn}
c{Elizabeth I}
}
union{
p[female]{Jane Seymour}
c{Edward VI}
}
union{
p[female]{Anne of Cleves}
}
union{
p[female]{Catherine Howard}
}
p[female]{Catherine Parr}
}
\end{genealogypicture}
\end{landscape}
\end{document}

w2-h2notw2-h1, which I already have. – Máté Wierdl Dec 01 '19 at 12:27