0

I'm very well aware of how to create new folders and move single files between folders. Just edit the name and commit the change.

I was wondering if there was an easy or similar way to move an entire folder to a new location within the same repository.

E.g., say I have myrepo/a/b/c/d/ and myrepo/a/b/c/e/ (that is, /d/ and /e/ are subfolders of /c/), how can i move folder /d/ to be within /b/ (i.e. on the same tier as /c/)?

The end result would be myrepo/a/b/c/e/ and myrepo/a/b/d/.

I'm unfamiliar with the GitHub command line 'thingy' and I would appreciate it if the quick and easy solution didn't use that advanced feature (although I would be glad to learn it).

Don't mark me as a duplicate when I say I have the same question as How to rename a directory/folder in Github(Web)?. It is the very same question, but that question hasn't been answered yet either, or at least the solution isn't clear. Again, I don't need to know how to move a file. I want to move an entire folder.

8
  • Just move the folder and add+commit the changes. Commented Feb 5, 2019 at 6:15
  • "git-mv - Move or rename a file, a directory, or a symlink". It should be as simple as git mv a/b/c/d a/b/ Commented Feb 5, 2019 at 6:29
  • @tkausl The point is, I don't even know how to move the folder itself. All I know is my method of renaming, which only works for files (to my knowledge), not folders. Commented Feb 5, 2019 at 6:35
  • @Amadan . How would I access the GitHub command line (or wherever you would type that code)? I'm very new to the system, sorry! Commented Feb 5, 2019 at 6:37
  • Dunno. To me, command line is the starting point, I don't do anything to access it. What is your starting point? Windows desktop? Commented Feb 5, 2019 at 6:39

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.