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
질문됨 일 년 전385회 조회
2개 답변
1
수락된 답변

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
답변함 일 년 전
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠