Save yourself a few keystrokes. Follow the steps below:
-
Run this Bash script on your laptop:
#!/usr/bin/env bash
| <script> | |
| import c3 from 'c3' | |
| import { debounce, cloneDeep, defaultsDeep } from 'lodash' | |
| export default { | |
| name: 'c3-chart', | |
| props: { | |
| config: { | |
| type: Object, | |
| default: () => ({}) |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Guild Wars 2: Item search</title> | |
| </head> | |
| <body> | |
| <div id="loader">Loading…</div> | |
| <div id="app" style="display: none;"> |
$ git checkout --orphan NEWBRANCH
$ git rm -rf .
--orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.
You can then start adding files and commit them and they will live in their own branch. If you take a look at the log, you will see that it is isolated from the original log.