I am in the process making my Java application Maven-based.
So I have to move my src/* into src/main/*.
Please help me out with the git commands.
CodePudding user response:
You might need to move the content of src/ rather than src/ itself
cd src
mkdir main
git mv -k * ./main/
On the git mv -k option, see "Move all files of a git directory into subdirectory and maintain history"
