a very detailed HowTo is this:
https://www.karl-deutsch.at/versionsverwaltung_mit_git.html
thanks to @kdeutsch