Git empty branch bash script

Sometimes I create empty branchs while designing some webs and I got tired of making all the thing manually; so, some time ago I wrote a little bash script that may work for any of you to do this task. It takes the first parameter as the name of the new branch to be created, here's the code:

# creating a git empty branch
# it takes as arg the name for the new branch

git-symbolic-ref HEAD refs/heads/$1
rm .git/index
git clean -fdx
git commit --allow-empty -m "Initial empty branch commit"

Hope it works for someone.

Any comment goes best to my twitter here.