Facing this error while installing Git

I am trying to install git when the process is over and check the version by typing git --version pop-up message comes up “not found”. Can someone help?

Git Install

After google the problem I found that maybe apt is not updated then I try the command “sudo apt-get update” and then run the command for installing git “sudo apt-get install git-all” but the problem is not solved.

All there,
My problem is resolve now you just have to do 2 things 1 to reset your lab and the 2 is to read this “2 Ways to Install Git on Ubuntu 18.04, 20.04 and 22.04” article. Hopefully it will solve the issue for you as well.
Kind regards.

Thanks for sharing the issue and also the solution @000nemove.

Regards,
Trung.