Code Monkey home page Code Monkey logo

Comments (2)

yebyen avatar yebyen commented on August 13, 2024

Is there some way to identify the biggest git commits?

When I am dealing with flat files inside of directories, I just do:

du -sch *|sort -h

I don't get that kind of tree sense of things out of git objects.

yebyen@bono:/home/john/urbit/.git$ ls -A|xargs du -sch|sort -h
4.0K    branches
4.0K    config
4.0K    description
4.0K    HEAD
4.0K    packed-refs
8.0K    info
28K refs
32K logs
44K hooks
44K index
99M objects
99M total
yebyen@bono:/home/john/urbit/.git$ cd objects/
yebyen@bono:/home/john/urbit/.git/objects$ ls -A|xargs du -sch|sort -h
4.0K    info
99M pack
99M total
yebyen@bono:/home/john/urbit/.git/objects$ cd pack/
yebyen@bono:/home/john/urbit/.git/objects/pack$ ls -A|xargs du -sch|sort -h
208K    pack-6748bcae51dc5382b70a1b811e48dd9760e8eaee.idx
98M pack-6748bcae51dc5382b70a1b811e48dd9760e8eaee.pack
99M total

Since the majority of the commit is in a pack file, I don't see any way to pare it down in that sense.

Or did someone repack the github.com repo in some way, to fix your issue in the last 13 days? I don't know if that is actually a thing. Does your .git/ directory look the same as mine above?

from archaeology.

yebyen avatar yebyen commented on August 13, 2024

You could always fork and squash all of the commits in your local branch

Staying in sync after that will require some git-fu

from archaeology.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.