It appears that Canonical does not want to provide a fixed version.
So I decided to change the git source repo, and get a fresh git with:
sudo add-apt-repository ppa:git-core/ppa sudo apt update sudo apt install git -y
now check the version with: git --version
and it has 2.39.2, works on Ubuntu 18.04 without issues.
Conclusion: there is no reason to stick at the old git 2.17.1 on that distro.
It appears that Canonical does not want to provide a fixed version.
So I decided to change the git source repo, and get a fresh git with:
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git -y
now check the version with: git --version
and it has 2.39.2, works on Ubuntu 18.04 without issues.
Conclusion: there is no reason to stick at the old git 2.17.1 on that distro.