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

Time:01-18

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

CodePudding user response:

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
  •  Tags:  
  • git
  • Related