Can't install software because it is not currently available from the software update server

https://www.codecademy.com/paths/computer-science/tracks/cspath-development-skills/modules/learn-git-git-workflow-u/articles/f1-u3-git-setup

I am trying to download git through the terminal and I keep getting this pop up saying “can’t install software because it is not currently available from the software update server”.

How do I resolve this issue

Try to download it from this website


install as instructed from its documentation.