josh VS git-subrepo

Compare josh vs git-subrepo and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
josh git-subrepo
21 19
1,335 3,129
3.8% -
7.5 2.1
5 days ago about 1 month ago
Rust Shell
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

josh

Posts with mentions or reviews of josh. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-02.
  • GitHub – josh-project/josh: Just One Single History
    1 project | news.ycombinator.com | 2 Apr 2024
  • Debian Git Monorepo
    4 projects | news.ycombinator.com | 2 Apr 2024
    Why use submodules when you can properly vendor the upstream git, and export/import commits without breaking hashes on either side?

    https://github.com/josh-project/josh

    We've been using josh at TVL for years and it's just amazing.

  • Josh: Just One Single History
    3 projects | news.ycombinator.com | 18 Feb 2024
    1 project | news.ycombinator.com | 18 Jul 2022
  • Just One Single History
    1 project | news.ycombinator.com | 10 Jan 2024
  • Metahead – An enterprise-grade, Git-based metarepo
    1 project | news.ycombinator.com | 10 Jan 2024
  • PyPy has moved to Git, GitHub
    3 projects | news.ycombinator.com | 1 Jan 2024
    Scalar explicitly does not implement the virtualized filesystem the OP is referring to. The original Git VFS for Windows that Microsoft designed did in fact do this, but as your second link notes, Microsoft abandoned that in favor of Scalar's totally different design which explicitly was about scaling repositories without filesystem virtualization.

    There's a bunch of related features they added to Git to achieve scalability without virtualization. Those are all useful and Scalar is a welcome addition. But the need for a virtual filesystem layer for large-scale repositories is still a very real one. There are also some limitations that aren't ideal; for example Git's partial clones IIRC can only be used as a "cone" applied to the original filesystem hierarchy. More generalized designs would allow mapping any arbitrary paths in the original repository to any other path in the virtual checkout. Tools like Josh can do this today with existing Git repositories[1]. That helps you get even sparser and smaller checkouts.

    The Git for Windows that was referenced isn't even that big at 300GB, by the way. Game studios regularly have repositories that exist at multi-terabyte size, and they have also converged on similar virtualization solutions. For example, Destiny 2 uses a "virtual file synchronization" layer called VirtualSync[2] that reduced the working size of their checkouts by over 98%, multiple terabytes of savings per person. And in a twist of fate, VirtualSync was implemented thanks to a feature called "ProjFS" that Microsoft added to Windows... which was motivated originally by the Git VFS for Windows they abandoned!

    [1] https://github.com/josh-project/josh

    [2] https://www.gdcvault.com/play/1027699/Virtual-Sync-Terabytes...

  • Just One Single History – combine the advantages of monorepos with multirepos
    1 project | news.ycombinator.com | 3 Jul 2023
  • Kubernetes Broke Git
    2 projects | news.ycombinator.com | 31 Jul 2022
    Good overview, I know these sorts of pains well. Lots of hard questions and few definitive wins/right answers. How to organize a massive repository out in the open is still an open question. On that note, recently, I've been experimenting with this project called josh, which basically is like 'git subtree on extreme steroids, functioning as a git proxy':

    https://josh-project.github.io/josh/

    It basically lets you unify/view many repositories as a single one, or equivalent to split a mono-repo into smaller sized units of work for CI, specific teams, etc. It's bidirectional, so you push and pull from josh and everything goes into a single linear history in the mono repo. And because it's bidirectional, people in the mono-repo can still do things like make large-scale atomic changes across all sub-repositories, and those get reflected.

    Josh currently isn't suitable for a lot of workloads due to various reasons (authentication is one that stands out), but it's actually the first tool I have seen that manages to offer BitKeeper-like "subtrees" that work really well, at scale, for large repos and teams. It requires some care to make sure "sub-trees" can be usable units of work, but it was one of the best features of BK in my opinion and really great for people doing one-off contributions, or isolating trees/changes to specific developers.

    I'd be interested to know if there are other open alternatives to this. It's a nice point in the design space between solutions like "integrate with the filesystem layer to do sparse clones" or "just split up the repos."

  • What Comes After Git
    13 projects | news.ycombinator.com | 4 Jul 2022
    With regard to repo composition, I have been following this project: https://github.com/josh-project/josh

git-subrepo

Posts with mentions or reviews of git-subrepo. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-25.
  • Git-Subrepo: Git Submodule and Subtree Alternative
    1 project | news.ycombinator.com | 27 Jan 2024
  • Monorepo advice
    3 projects | /r/typescript | 25 Apr 2023
    git-subrepo - complicated and difficult to understand
  • is there any way to combine old repositories into onto one repo?
    1 project | /r/github | 18 Apr 2023
    I find the following approach more consistent to manage components: https://github.com/ingydotnet/git-subrepo . And native package management systems, like npm in JavaScript universe, superior to either of the above. But the choice of a particular method depends on problems we need to solve. In terms of one-time codebase aggregation method they are all equally fine.
  • Git Commands You Probably Do Not Need
    3 projects | news.ycombinator.com | 23 Jan 2023
    I much prefer https://github.com/ingydotnet/git-subrepo
  • Git-Subrepo – Git Submodule Alternative
    1 project | news.ycombinator.com | 13 Jan 2023
  • Just Use a Monorepo
    3 projects | news.ycombinator.com | 12 Jan 2023
    Where I work we just package everything (nugets, python packages, npm) on our Artifactory. Contracts dependencies (DLLs, protobufs) are also distributed as packages. We made it easy to fetch and test the source and allow developers to develop, debug and test those dependencies with their own project if needed.

    Every time we try to assemble repositories in macro-repos we always end up regretting it. Multiple dedicated repositories allow autonomy for teams and enforce modularity and coding as a library. Monorepos have a tendency of becoming huge merge trains easily and often derailed and with lots of fear of being blamed on stepping on someone else's toes.

    We update often all our projects knowing full well that not doing so is just borrowing development time at high interest rate.

    As a side-note when we do have to do an assembly of different code base, we use git-subrepo: https://github.com/ingydotnet/git-subrepo which provide the best of both submodules and subtree.

  • How to get yaml from upstream repo into monorepo
    1 project | /r/GitOps | 13 Dec 2022
    v2: I use git subrepo or a similar tool, to get the upstream yaml into my repo.
  • Do you use git-subrepo?
    1 project | /r/git | 12 Dec 2022
    I found git-subrepo: https://github.com/ingydotnet/git-subrepo
  • Using Git Subtree vs SubModule?
    1 project | /r/git | 19 Aug 2022
    You might also check out git subrepo.
  • Show HN: Get rid of Git submodules and never look back (now for GitHub users)
    4 projects | news.ycombinator.com | 27 Jun 2022
    Besides these git x-modules, there are historically three contenders:

    git submodules: https://git-scm.com/book/en/v2/Git-Tools-Submodules

    git subtrees: https://www.atlassian.com/git/tutorials/git-subtree

    git subrepos: https://github.com/ingydotnet/git-subrepo

    ---

    git subrepos work simply by copying your dependency to a subdirectory and committing the changes using one large commit that retains metadata about the update to the subrepo. For that reason, git subrepos aren't symlinks. You don't need to git clone --recursive like with git submodules, and you don't need cross-repo authentication. Updating a subrepo means performing another commit.

    Even though git subrepos are the most poorly maintained, the design is simpler.

    I wish someone would fork and take over maintenance.

    git subrepos are the best.

What are some alternatives?

When comparing josh and git-subrepo you can also consider the following projects:

josh - Just One Single History

hubris - A lightweight, memory-protected, message-passing kernel for deeply embedded systems.

git-filter-repo - Quickly rewrite git repository history (filter-branch replacement)

gradesta - Stitchable spreadsheets for the 21st century

scalar - Scalar: A set of tools and extensions for Git to allow very large monorepos to run on Git without a virtualization layer

ferros - A Rust-based userland which also adds compile-time assurances to seL4 development.

josh - Just One Single History [Moved to: https://github.com/josh-project/josh]

tock - A secure embedded operating system for microcontrollers

git-branchless - High-velocity, monorepo-scale workflow for Git

Asciidoctor - :gem: A fast, open source text processor and publishing toolchain, written in Ruby, for converting AsciiDoc content to HTML 5, DocBook 5, and other formats.

VFSForGit - Virtual File System for Git: Enable Git at Enterprise Scale

omicron - Omicron: Oxide control plane