(feature) copy files to root of repository before pushing / keep README in pushed branch
I figured that for github "user" pages on github.io only the master branch can be used to serve the (via jgd: static) content.
I was very happy to see that with jgd -b master -r source I can still use jgd such that user.github.io will show me the rendered version.
However, now when browsing the repo on github, people do not see the README.md anymore (in which I would also state that I use jgd, and how). Thus it would be cool if jgd would have a --copy-readme (or --copy-file README.md) flag to copy the README.md over before pushing to the master branch.
@yegor256/z please, pay attention to this issue
I can draft a small nasty PR if you wish, basically guarding the rm README thing in the bash script.
@fwolfst isn't is copying the file by default? I don't understand the problem...
@yegor256 yes its copied but then deleted: https://github.com/yegor256/jekyll-github-deploy/blob/587c67d481071a739c6681dff2ab419d0fd80db9/bash/deploy.sh#L55 . My PR adds an option to not delete the README.md .
In that sense, from a developer-perspective the flag shouldnt be called copy-readme but rather do-not-delete-readme, but from a users perspective that doesnt make much sense. Maybe --keep-readme ?