Moving files and folders on github

I need to set up github for a school project, but Im lost in complicated work.

I managed to drag the contents of the folder into my repository, but since I need to add other files and want to keep some structure, I want to take the current files and the folder that I have and move them to a new directory.

For example, I want to change the following:

Master
  Folder X
  Folder Y
  File Z

For

Master
  Project 1
    Folder X
    Folder Y
    File Z

How should I do it? I found similar posts with similar explanations, but I never understood them. Can anyone explain this easily? Because I tried without success for almost two hours.

+4
source share
1 answer

Move the files as you want to your local folder

git bash:

git add "Project 1"
git commit -am "change folders layout"

:

git push
+4

Source: https://habr.com/ru/post/1542818/


All Articles