Sometimes staying on top of the latest version of WordPress can be quite annoying when your testing things locally or rolling out regular wordpress sites. I normally install with .svn but this is a neat little bash script function I threw together to grab the latest version of WordPress and unzip into the current directory through Mac OS X Terminal command.
Open up your
and paste the following code into it.
tar xfz latest.tar.gz;
mv wordpress/* ./;
rm -f latest.tar.gz;
Now quit and re-open terminal or type ./profile for the changes to take effect.
CD into the desired directory and type wp-install and let magic behold you, you’ll shortly have the latest version of WordPress downloaded and installed.
Seen various fixes to this problem but this is the ultimate 5 second quick fix.
open your ~/.bash_profile, if you use textmate it would be:
sudo mate ~/.bash_profile
add this line to the file:
Save & close the file and type on the terminal:
Simply blogging this for future reference and in the hope it will be useful for someone else.
To checkout a remote branch into your local use the following commands.
git clone firstname.lastname@example.org
git branch -r
Will show you all the remote branches pick the one you like…
For instance for me it would be origin/dave.
Run the following command.
git checkout --track origin/dave
Use this simple command to find and delete .svn subversion folders from within a folder or directory using mac linux terminal command line.
find ./ -name ".svn" | xargs rm -Rf
Example with folder path
find ./images/ -name ".svn" | xargs rm -Rf