E
E
ettaluni2021-07-09 23:24:11
git
ettaluni, 2021-07-09 23:24:11

Is it possible to set up git to download a project in parts?

Goodnight! I just found out that you can run git over ssh and connect your local machine to a remote server, from which push to gitlab is already going on. Well, you know, VPN and all that.
So, is it possible to work with a remote project via git-ssh in parts? What is the motivation. The project is healthy 2-5 gb of data and the vpn channel is very poor. In short, I do not need all the data to work. For example, I want to make a commit on a task, determine which files are needed, download a folder for myself, work locally with a git, auto-deploy to a remote server.
Can this be arranged?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-07-10
@vabka

1. The idea with remote vscode is cool, I advise you to pay attention.
2. Git clone has a --depth option that allows you to specify how many commits in depth you want to pull from the history. For very large reps, it makes no sense to download the entire history
https://gist.github.com/tuxdna/b8aa0a587689f8807c1...
3. There is a partial-clone, but I'm not sure how and why it is needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question