Hard (impossible?) to start a repo with branch other than master
I want to create a repo that is only gh-pages. I did this:
gl initgl branch -c gh-pagesgl switch gh-pages
Problem: Gitless just deleted all my files. They're all in the master branch, but there are no commits.
gl fuse master
no commits to fuse
The only workaround I could find was to commit everything in the master branch then fuse it.
Is there a better way, or is this just a limitation?
Get back to master using
gl switch master
You should find back your un committed files.
Then do a
gl switch gh-pages -mo
This will move over your uncommitted modified files and untracked files to the gh-pages branch.
Does this solve your issue ?
Thanks, that works. I guess the issue is - can it be made more intuitive, or easier to discover?
I had the same problem. That's why I knew how to do it. It's a documentation issue. It is described, if I remember well, but it would deserve to be more visible like a dedicated section.