How to get part of Repo content through Git’s Sparse Checkout in Monorepo

168781900-de9ac775-6638-4135-b74b-c496d6

We now have more and more projects with separate front-end and back-end architectures, so it is very common to put front-end and back-end code in a Git Repo at the same time. However, the question is, if the front-end and back-end are separated very cleanly, and if the front-end personnel don’t want to see the source code of the “back-end”, is there a way for Git to achieve the “partial extraction” function? Yes, there really is! In this article, I will talk about this useful feature.

continue reading

This article is reprinted from https://blog.miniasp.com/post/2022/05/17/Down-size-your-Monorepo-with-Git-Sparse-checkouts
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment