4
4
4ainik2017-09-29 23:42:01
git
4ainik, 2017-09-29 23:42:01

How to reduce GIT traffic?

There is such a command

git clone url

As you know, this command creates a copy of the repository in the current directory, while according to observations, the contents of the .git folder take up many times more than the useful content.
Is it possible to somehow "refuse" or something from downloading this unnecessary trash and limiting ourselves only to useful repository files? :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
padlyuck, 2017-09-29
@padlyuck

https://stackoverflow.com/questions/29368837/copy-... the author's question is not about that, and the answers there are not at the checkout to the question itself, but they answer your question

A
aol-nnov, 2017-09-30
@aol-nnov

> limited to only useful repository files? :)
everyone has their own criteria for usefulness, but git clone --depth 1 probably does what you want

A
Antony, 2017-09-30
@RiseOfDeath

Is it possible to somehow "refuse" or something from downloading this unnecessary trash and limiting ourselves only to useful repository files? :)

Actually, these are useful files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question