How do I move repositories in CodeCatalyst from one project to another project?

1

Hi there,

I'm trying to move a specific source repository (that has been created in a temporary project) to a different project.

Is this something that is currently supported by CodeCatalyst or not?

My current, manual approach would be:

  • create source respository in target project with the same name
  • git clone from old source repository
  • git add new_remote <git-url-target-repository>
  • git commit, git push

This has the problem that the old commit history might be lost, yes, there are possibilities to workaround that too, but it seems wrong... :-(

Will this be a supported feature going foward? And also, can I then move projects from one space to another?

Regards Johannes

profile picture
asked a year ago372 views
2 Answers
1
Accepted Answer

OK, as CodeCatalyst does not support this option yet we need to use the "manual" way to achieve this.

Using the answer here we are able to keep the history aswell:

git remote add XXX_remote <path-or-url-to-XXX-repo>
git fetch XXX_remote
git merge -s ours --no-commit --allow-unrelated-histories XXX_remote/master
git read-tree --prefix=ZZZ/ -u XXX_remote/master
git commit -m "Imported XXX as a subtree."
profile picture
answered a year ago
0

Unfortunately, CodeCatalyst does not currently support moving source repositories from one project to another. You would have to manually clone the repository and push it to the target project. Additionally, this process may result in the loss of commit history.

profile picture
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions