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
posta un anno fa384 visualizzazioni
2 Risposte
1
Risposta accettata

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
con risposta un anno fa
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande