R
R
Red Rain2016-03-13 20:44:37
git
Red Rain, 2016-03-13 20:44:37

What is a clean repository for?

On the local, we create a working directory where we expand our repository -> work with it -> create a clean repository -> send it to the server.
There is only a .git folder in a pure repository, how will people work with it? And why it is necessary to send clean?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Ukolov, 2016-03-13
@alexey-m-ukolov

We create a clean repository on the server , of course, so that there is somewhere to push.

V
Victor, 2016-03-13
@v_decadence

And why it is necessary to send clean?

Who said?
You can create a repository, commit a bunch of stuff there, and push whenever you want.
If you push empty, then someone else will start committing.

A
abcd0x00, 2016-03-15
@abcd0x00

There is only a .git folder in a pure repository, how will people work with it?

It is only needed for cloning and sharing commits via pull/push. Cloning from it creates files in the latest state and downloads the history of changes. And when exchanging commits, only commits are downloaded from there or there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question