ghostbar (owner)

Revisions

gist: 213924 Download_button fork
public
Description:
creates a git empty branch
Public Clone URL: git://gist.github.com/213924.git
Embed All Files: show embed
git-empty-branch #
1
2
3
4
5
6
7
8
9
#!/bin/sh
# 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"