I have a git repository (at github.com) with two branches: master and gh-pages. I would like to have the gh-pages branch in a subdirectory, so that I don\'t need to switch branc
Branches in git are pointers to commits (that move), and so having a branch as a subdirectory is not possible.
To be fair, git co gh-pages is not much harder than cd ../gh-pages
git co gh-pages
cd ../gh-pages