Home > other >  How to move git repository folder into new folder like,- src/* to src/main/* for converting Eclipse
How to move git repository folder into new folder like,- src/* to src/main/* for converting Eclipse

Time:02-03

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"

  • Related