How to delete a remote GIT branch

Today I needed to delete one of my remote branches.  Here is the solution I found, simply run this command from GIT Bash:

$ git push origin :remoteBranchName

So if for example your remote branch is called “testBranch” and the remote is called “origin”, you would run:

$ git push origin :testBranch

Hope this helps anyone out there.

Why Google+?

If you haven’t heard, Google+ is the latest social network on the block and is taking the world by storm at the moment. And it’s still in beta!

Some people refer to it as the grown up version of Facebook and I have to say I agree completely. Google has done a magnificent job in addressing the faults and limitations of Facebook. Have a look at the following videos to find out all you need to know about Google+ enjoy!

How to password protect my site?

To password protect your site or a folder within your site, the quickest method is likely to be the .htaccess method.

You simply need two files:
1. .htaccess
2. .htpasswd

The .htpasswd file contains the login details (username:encryted password) of the users allowed to enter the area of the site you are protecting. This ideally should be placed outside of the web root so it is inaccessible to the world.

The .htaccess file needs to be placed in the folder you wish to protect. Basically if someone tried to access any file below the folder location of the .htaccess file, they would be prompted to enter login details. The contents of this file states that authorisation is required and also points to the location of the .passwd file so that the entered login details can be checked against.

There is a great and easy to use tool on Dynamic Drive to help you generate these two files.

As a web developer, a great use for this is to password protect your client site until it is ready to go live.  This allows the search engines to only start crawling the site once the site is goes live.

More reading:

Hope you found this useful! 🙂