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
gefragt vor einem Jahr384 Aufrufe
2 Antworten
1
Akzeptierte Antwort

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
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen