N
N
Nick Bukovskiy2017-03-08 09:10:21
GitHub
Nick Bukovskiy, 2017-03-08 09:10:21

How to sort by folders in the repository itself?

Uploaded the project to the repository. Time passed and I sorted the project into folders on the local machine. When I do a git push in the repository on github, there are no folders, and the new files are simply thrown into the heap. How do I get the same kind of repository as I have on my local machine?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Ignatiev, 2017-12-06
@Lizard-108

Because there is a StdClass and not an array nested, then like this:

$object = $array[0];
$array[0] = (object)[
    'name' => $object->name,
    'link' => '/'
];

S
Stimulate, 2017-12-06
@Stimulate

$array[0]['link'] = '/';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question