Skip to content

Instantly share code, notes, and snippets.

@brianjlandau
Created February 14, 2012 22:28
Show Gist options
  • Select an option

  • Save brianjlandau/1831069 to your computer and use it in GitHub Desktop.

Select an option

Save brianjlandau/1831069 to your computer and use it in GitHub Desktop.
Start new git branch with no history.
git symbolic-ref HEAD refs/heads/my-branch-name
rm .git/index
git clean -fdx
touch README
git add .
git commit -m "Initial Commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment