E
E
Ellik2015-02-16 21:26:54
git
Ellik, 2015-02-16 21:26:54

How to move a project from a remote Git repository to a local machine?

The fact is that when cloning a repository with a project on yii, not the entire project is transferred, but only part of it. I understand that Git doesn't work with empty files and directories, but I can't find a solution to the problem. The goal is to move the entire project from the remote repository to the local machine. Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Maxim Kudryavtsev, 2015-02-16
@kumaxim

Maybe the solution is not the best, but why not connect to the git server via ssh and pull the files from there via scp?

H
He11ion, 2015-02-16
@He11ion

The meaning of the question is not very clear.
Git clones empty files/folders quite well, you just need to git add them to the repository.

V
Victor, 2015-02-16
@v_decadence

You are confusing something.
Git works great with empty files.
To add a folder, it must contain at least one file, even an empty one. Usually an empty .gitkeep file is added (similar to .gitignore), but the name doesn't matter.
And if this is done in the cloned storage, everything is cloned as it is, completely.

T
Terminaft, 2015-02-17
@Terminaft

By default, yii(2) adds .gitignore files to the framework files, so you need to install the composer, install yii2 through it, initialize the framework in the right environment (init if using the advanced template), and then clone the repository

I
Igor Vorotnev, 2017-10-20
@FALKOR

First, <input type="hidden" value="unsubscribe-success">you don't have the name. The same goes for the email field. To get started, add them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question