Skip to content

Instantly share code, notes, and snippets.

@ZweiSteinSoft
Created December 6, 2012 13:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ZweiSteinSoft/4224419 to your computer and use it in GitHub Desktop.
Save ZweiSteinSoft/4224419 to your computer and use it in GitHub Desktop.
Create new empty branch in Git repo
#!/bin/bash
git symbolic-ref HEAD refs/heads/BRANCHNAME
rm .git/index
git clean -fdx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment