Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git symbolic-ref HEAD refs/heads/newbranch
- rm .git/index
- git clean -fdx
- <do work>
- git add your files
- git commit -m 'Initial commit'
- is now
- git checkout --orphan newbranch
- git clean -fdx
- <do work>
- git add your files
- git commit -m 'Initial commit'
Add Comment
Please, Sign In to add comment