Skip to content

Instantly share code, notes, and snippets.

@umstek
Created July 15, 2017 08:48
Show Gist options
  • Save umstek/ec11a00f132a2e3053e9a6fb2a2d70f1 to your computer and use it in GitHub Desktop.
Save umstek/ec11a00f132a2e3053e9a6fb2a2d70f1 to your computer and use it in GitHub Desktop.
Create a clean new branch in git without shared history
git checkout --orphan <newbranch>
git rm -rf .
<...do work...>
git add your files
git commit -m 'Initial commit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment