DgUZH
DgUZH

Reputation: 107

Is there a way to move files to directory in git repository?

I want to put my projects in one repository to see it clearly.
So I need to organize projects as directory.

For this, I made a directory in my repository and also cloned my projects in my repository.
So the result came out like a picture below.

'dir' is the name of directory that I want my projects to move.
And other files are projects files.

Question: I can move all files one by one by editing files?
There are many files in project so, I feel this way is inefficient.

Are there any ways to move files and folders of project at once in directory of repository?

my repository enter image description here

I want to organize like this enter image description here

Upvotes: 1

Views: 3769

Answers (1)

VonC
VonC

Reputation: 1323973

It is easier to:

  • clone the repository
  • use a regular file explorer and move everything as you want
  • git add . at the root folder of the repository: any move/rename will be detected then
  • git commit + git push

Upvotes: 2

Related Questions