I tried to include the following unsuccessfully to my ~/.profile:
export PATH='$HOME/opt/git/bin'
It seems not to work because $git gives me nothing. I am trying to install Git.
I have also tried commands here.