git-sizer | Compute various size metrics for a Git repository, flagging those that might cause problems | Time Series Database library

 by   github Go Version: v1.5.0 License: MIT

kandi X-RAY | git-sizer Summary

kandi X-RAY | git-sizer Summary

git-sizer is a Go library typically used in Database, Time Series Database, Prometheus applications. git-sizer has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Happy Git repositories are all alike; every unhappy Git repository is unhappy in its own way. —Linus Tolstoy.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              git-sizer has a medium active ecosystem.
              It has 2968 star(s) with 124 fork(s). There are 37 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 7 open issues and 43 have been closed. On average issues are closed in 127 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of git-sizer is v1.5.0

            kandi-Quality Quality

              git-sizer has no bugs reported.

            kandi-Security Security

              git-sizer has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              git-sizer is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              git-sizer releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of git-sizer
            Get all kandi verified functions for this library.

            git-sizer Key Features

            No Key Features are available at this moment for git-sizer.

            git-sizer Examples and Code Snippets

            No Code Snippets are available at this moment for git-sizer.

            Community Discussions

            QUESTION

            Test Git repo size reduction after deleting a branch
            Asked 2019-Oct-01 at 10:29

            Is there any way I can test how the deletion of several branches will affect the size of that git repo. I have a git repo with 10 lived branches and hundreds of feature (short lived branches).

            The repo is very large and slow to clone. GitLab shows 1.4 GB as the total size, git-sizer shows a blob total size of 8.4 GB.

            I have tried tools such as BFG Repo Cleaner to remove unwanted history, but I've only managed a reduction of 1.4 to 1 GB which is not really sufficient.

            My strategy split my repo in 2 and also to use multiple forks to separate streams of work. I will also add push extension and size restriction in GitLab to stop pushing of junk. We've had problems with .rar, .zip, .jar files, personal backups mistakenly pushed etc. However I also want to know if I can retain the history of my long lived branches. So my questions:

            1. Is it possible to see how much the size would be reduced if I deleted all the short lived branches?
            2. Can this be achieved locally?
            3. Or do I just have to duplicate everything to a test repo on GitLab and delete the branches on this test repo?
            ...

            ANSWER

            Answered 2019-Jul-17 at 10:52

            Answering your three questions, I'd say that yes, it is possible to check this locally. (dependind on what you mean by if I deleted all the short lived branches, I'll assume they are not merged).

            You can clone your repo, create local branches for the branches you want to keep, remove the remote, and gc aggresively.

            However I don't think that'll help as much as using BGF repo cleaner to remove large binary files. If you need to track said binary files, you should switch to git-LFS for those files.

            Your experience with BGF seems strange, I'd expect a much better reduction if you cleaned your repo properly.

            Source https://stackoverflow.com/questions/57073577

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install git-sizer

            Make sure that you have the Git command-line client installed, version >= 2.6. NOTE: git-sizer invokes git commands to examine the contents of your repository, so it is required that the git command be in your PATH when you run git-sizer.
            Make sure that you have the Git command-line client installed, version >= 2.6. NOTE: git-sizer invokes git commands to examine the contents of your repository, so it is required that the git command be in your PATH when you run git-sizer.
            Install git-sizer. Either: a. Install a released version of git-sizer(recommended): Go to the releases page and download the ZIP file corresponding to your platform. Unzip the file. Move the executable file (git-sizer or git-sizer.exe) into your PATH. b. Build and install from source. See the instructions in docs/BUILDING.md.
            Change to the directory containing a full, non-shallow clone of the Git repository that you'd like to analyze. Then run git-sizer [<option>...] No options are required. You can learn about available options by typing git-sizer -h or by reading on.

            Support

            git-sizer is in regular use and is still under active development. If you would like to help out, please see CONTRIBUTING.md.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link