A few options, each with their own issues:
- Rename $/Project/dev to $/project/test, branch $/project/test to $/Project/Develop (needs to get a new name, otherwise the old branch relation will be revived)
- Create a new branch for $/project/test from $/project/main. destroy $/project/dev. create a branch from $/project/test to $/project/dev. (history on dev is lost)
- Branch $/project/main to $/project/test, reparent $/project/dev, merge test -> dev. (the branch relation is succesfully created, but the relation persists between dev and main).