Recently there was a critical vulnerability in git announced affecting many git users including myself on OSX.
After downloading and installing the latest version of git and entering in Terminal
I was presented with the incorrect version number. Checking where it had been installed with
displayed the original
instead of the newly installed version at
To resolve this I added the correct path (to my bash profile)
and now which git correctly returned the new path and bumped the version
git version 2.0.1
How to setup some quick shortcuts to toggle visibility of hidden files in Finder
- In Terminal type: sudo nano ~/.bash_profile
- Append to the file the following: alias showFiles=’defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app’
- In a new line type: alias hideFiles=’defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app’
- Save the file
- To make the aliases available in Terminal type: source ~/.bash_profile
Now you have two additional commands: showFiles and hideFiles to make things easier.