angular-cli-ghpages icon indicating copy to clipboard operation
angular-cli-ghpages copied to clipboard

Avoid keeping commit history on gh pages branch

Open dianjuar opened this issue 6 years ago • 3 comments

Hallo!

I have a question, is it possible to deploy on gh pages and avoid keeping the commit history with your package?

For example, Travis CI has the option keep-history when deploying on gh pages to configure this behavior and its default is false.

If you want to know my opinion is a good feature, because people usually don't want to keep track of their github pages deployment, that is just an environment to be able to serve your files, even they are almost not human readable if you are using webpack based projects .

I have an Angular project and if you see its gh-pages branch doesn't give any useful information

dianjuar avatar Nov 26 '18 04:11 dianjuar

That's a great idea. We should add this feature one day. I usually push to a separate repo, this keeps the code-repo clean and I still have an archive of all builds.

JohannesHoppe avatar Dec 02 '18 12:12 JohannesHoppe

Found this open PR: https://github.com/tschaub/gh-pages/pull/277

JohannesHoppe avatar Dec 23 '19 18:12 JohannesHoppe

see #90, this can be only implemented if we fork gh-pages

JohannesHoppe avatar Jan 06 '20 12:01 JohannesHoppe