In my git repo, the application is located in the root folder, like
.gitignore
pom.xml
data/
src/
README.md
...
due to a redesign of the application (one part is to introduce a parent pom), it i want to move everything into a subfolder, e.g. called system, and then create a second folder (e.g. called api):
system/
.gitignore
pom.xml
data/
src/
README.md
...
api/
src
...
...
What is the best way to move everything to system
? Is git mv for each file/directory in the root directory enough?
Simply move everything (except for the .git
directory) into the new folder, run git add --all
, and commit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With