Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add orphan/force push option #48

Open
MoOx opened this issue Feb 10, 2016 · 2 comments
Open

Add orphan/force push option #48

MoOx opened this issue Feb 10, 2016 · 2 comments

Comments

@MoOx
Copy link
Contributor

MoOx commented Feb 10, 2016

When you have a website with a lot of pages, versionning gh-pages can start to be a problem. I have a repo that is almost 100MB for the single gh-pages. I would like to add an option to checkout --orphan gh-pages and so be able to force push. Are you open to a PR for this option (name: orphanBranch) ?

@tschaub
Copy link
Owner

tschaub commented Feb 24, 2016

There is an undocumented depth option. I'm curious if setting depth: 1 would help your case.

If so, I'd be interested in making it the default and adding a shallow option. If true (the default), we could git clone --depth 1. Otherwise, git clone without the --depth arg.

@MoOx
Copy link
Contributor Author

MoOx commented Feb 25, 2016

It's not what I want. I want to have a single commit in gh-pages all the time, not just while I am cloning.

I think for my need I can do with a simple command line like this https://github.com/facebook/graphql/blob/e27c004cbc7f752b5ea816375215fe333e02c9e/package.json#L21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants