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

Reduce Repository size #2142

Open
prateekj117 opened this issue Jul 29, 2019 · 6 comments
Open

Reduce Repository size #2142

prateekj117 opened this issue Jul 29, 2019 · 6 comments
Labels
Milestone

Comments

@prateekj117
Copy link
Member

prateekj117 commented Jul 29, 2019

Actual Behaviour
When cloning the Repository, it's more than 1GB.

Expected Behaviour
Update Readme to make developer to only clone the development branch and also delete the history of gh-pages branch on each new pages generation e.g. by using Github Actions.

@hoangdatngo
Copy link
Contributor

@prateekj117 I want to work on this issue.

@jlegha
Copy link

jlegha commented May 11, 2020

I can provide you the solution to this problem.

@iamareebjamal
Copy link
Member

OK

@jlegha
Copy link

jlegha commented May 12, 2020

I was having problem while cloning the Repository after forking it. The size of repository was too large to download so it always got interrupted while cloning.
So to solve this I used the depth as 1 and it worked. The size of repository was only 11.50 MB after cloning.

You can follow these two steps to solve this issue.

  1. Provide an argument of -- depth 1 to the git clone command to copy only the latest revision of a Repository.
    git clone -–depth [depth] [remote-url]

  2. You can also use git shallow clone to access a single branch.
    git clone [remote-url] --branch [name] --single-branch [folder]

@iamareebjamal
Copy link
Member

That's not a solution. That's a workaround we are already aware of

@aaryan078
Copy link

I want to work on this issue(#2142)

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

No branches or pull requests

6 participants