Created
July 15, 2017 08:48
-
-
Save umstek/ec11a00f132a2e3053e9a6fb2a2d70f1 to your computer and use it in GitHub Desktop.
Create a clean new branch in git without shared history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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