Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

updated git but still showing old version

Run the command:

which git
You'll probably see /usr/bin/git -- the Apple supplied version. This will be because /usr/bin appears in your PATH environment variable before /usr/local/git/bin. You can verify this by running the command:

echo $PATH
If that is the case then run this command:

export PATH=/usr/local/git/bin:$PATH
and then try git --version again. You should now get 1.8.4.2. This hasn't fixed it permanently yet though. You'll need to add the export PATH=... line to your ~/.bashrc so that it gets set for every shell.
Comment

PREVIOUS NEXT
Code Example
Shell :: shell current week 
Shell :: how to delete directory from /opt 
Shell :: linux clear lines of log 
Shell :: check container logging driver 
Shell :: linux backup command line 
Shell :: how to clean snap linux 
Shell :: how to generate a .gitignore 
Shell :: PrestaShop installation needs to write critical files in the folder var/cache 
Shell :: import fuzzywuzzy module jupyter notebook 
Shell :: firewalld redhat 
Shell :: how to install pulseaudio volume control on fedora 
Shell :: bash color test 
Shell :: what is appmenu-gtk-module 
Shell :: ubuntu command to alt + f2 r 
Shell :: git init git remote add origin git pull 
Shell :: lamp download for ubuntu 20.04 
Shell :: fish add to path 
Shell :: shell align columns 
Shell :: arch jpg to png 
Shell :: git link on local project 
Shell :: install latex editor 
Shell :: ubuntu increase volume 
Shell :: whatsapp web for ubuntu 
Shell :: linux while loop shell 
Shell :: asdf check node version 
Shell :: anaconda install crispy-forms 
Shell :: laravel installer version 
Shell :: how to install python using windows command prompt 
Shell :: using scp with ssh with server credentials 
Shell :: how to find max and min in column bash 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =