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

Move materials from 'railsgirls' to 'materials' repo #570

Closed
keikoro opened this issue Nov 6, 2014 · 11 comments
Closed

Move materials from 'railsgirls' to 'materials' repo #570

keikoro opened this issue Nov 6, 2014 · 11 comments
Labels

Comments

@keikoro
Copy link
Contributor

keikoro commented Nov 6, 2014

Ticket for keeping track of which materials have already been moved from the main repository railsgirls/railsgirls to the new repository railsgirls/materials.

The idea for creating a separate repository for materials - templates for posters and other materials for events, all files not directly accessible or downloadable from http://railsgirls.com etc. - originated from the main repo having become unnecessarily big. See #567.

With two separate repositories, not every (co-)organiser wanting to change just a tiny bit of information on their own local event page has to download 500MB worth of RG-related things.

@keikoro keikoro added the To-do label Nov 6, 2014
@keikoro
Copy link
Contributor Author

keikoro commented Nov 7, 2014

  • copied over all files from railsgirls > assets > materials > Posters to new repo
    (+ renamed some files, separated them into generic and location-specific, moved a logo to another folder)
  • removed Posters folder from main repo

@mvz
Copy link

mvz commented Nov 7, 2014

Are you planning to rewrite the main repository to make it smaller?

@FeliciousX
Copy link
Contributor

After moving all the materials, you'll need to rewrite history to make the repository smaller. That's not an easy task D:

P.S: Accidental close and re-open issue. My bad.

@mvz
Copy link

mvz commented Nov 10, 2014

I'm volunteering to help with the history rewriting. I've done that a lot of while making some of my private projects public.

@FeliciousX
Copy link
Contributor

That's nice! I've done it once and it was a huge pain in the a--! I should start practicing 😋

@keikoro
Copy link
Contributor Author

keikoro commented Nov 11, 2014

I've never done it so wouldn't know where to start. (: But it's good to hear that someone's willing to help with this, thank you! <3

First we'll need to move all the "materials"-y files though. As I said in the other ticket, I unfortunately won't have time to work on this again until ca. the 24th. #busybusy

@keikoro
Copy link
Contributor Author

keikoro commented Nov 11, 2014

Question: does rewriting work (alright, well) for repos which have many contributors, like this one?

@mvz
Copy link

mvz commented Nov 11, 2014

Yes, this works. Git will keep the original author info around. Also, there are ways to rewrite merges and such. Git's subcommand filter-branch is what I would use for that.

There are a few caveats:

  • You have to be very careful that people don't send pull requests based on the 'old' master. However, they should be easy to spot since they will seem to contain all the old commits.
  • GitHub will not purge the old commits from its disks since other people might still have branches that depend on them. This is not really a problem since cloning will still ignore those commits.
  • You might get some empty commits if they only contain purged materials. You could get rid of those too, but then there might be merges that don't actually merge anything.

@FeliciousX
Copy link
Contributor

Do you think a new ticket should be created for the history rewriting?

@FeliciousX
Copy link
Contributor

Meanwhile, user who wants to clone the repository can run git clone --depth=1 . I tried it. It's 142mb (Which is a lot less than 500Mb)

@keikoro
Copy link
Contributor Author

keikoro commented Nov 11, 2014

But how would they know they should do that? Even if we put this piece of info into the README, not everyone will see it (in time; meaning, not everyone will read the readme before cloning).

And I'm all for new/more tickets if they help keep things orderly. (:

@keikoro keikoro closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants