Pages: [1]   Go Down
Author Topic: Make the Github Source Code Download Smaller!  (Read 625 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When I look at the sizes of everything in my arduino-source file, it looks like this:
Code:

4.0K    .classpath
4.0K    .gitignore
4.0K    .project
4.0K    readme.txt
12K     todo.txt
40K     license.txt
1.3M    libraries
1.4M    hardware
3.5M    core
13M     app
85M     build
980M    .git
1.1G    .

So. There's less than 15MB of source code, including all the images required. Okay, that's great. There's 85MB of built stuff. Okay, I know executables take up a bit of space. But then I look at the biggest part -- 980 MB just for the .git folder? That's just crazy. When I download the arduino source to patch it, I don't need 7 years' worth of history to come along with it, especially since it is by far the biggest file in my /home directory.

I'm not sure how to do it (perhaps start a new repo and only include things <1 year old), but that .git directory needs to shrink.
Logged

UK
Offline Offline
Faraday Member
**
Karma: 100
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Git sucks gonads, and the person who thought it up needs stringing up by theirs.

What's wrong with good old CVS?  Or, if you want to be posh, SVN?
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Offline Offline
Jr. Member
**
Karma: 1
Posts: 55
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try "git clone depth=1" - I'm not an expert on git, but google is your friend.

Generally, I find a DVCS pretty useful when messing around with small, tricky
projects; git's kind of a pain, but Mercurial is pretty easy to use for the limited
stuff I use it for.  (Personally, I'd also avoid CVS and SVN unless gunpoints
were involved ...)

Will
Logged

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try "git clone depth=1" - I'm not an expert on git, but google is your friend.

Ah, perfect. That's an excellent workaround; thank you.
Logged

Pages: [1]   Go Up
Jump to: