I have a subdirectory named "www" that is a repo:
site |-- www/ | |-- .git/ | |-- index.html |-- design/ | |-- images.jpg
I'd like to change the repo to the parent directory so that the repo structure mirrors the original file structure as follows:
site |-- .git/ |-- www/ | |-- index.html |-- design/ | |-- images.jpg
Can this be done? Are there implications with then pushing the changes up to Gitlab?
You are good to continue exactly where you left off: your older branch, unstaged changes, etc. This will just copy the source folder to destination/source . The correct command is rsync -azv --exclude '. git' source/ destination/ , which copies contents of source folder to destination folder.
www
directory in your repo.git mv
the HTML files to that directory. Optionally commit this step.mv
the design directory into your repo, and git add .
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