Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Possibility of transfer repository from one workspace to another repository with another workspace

Harshavardhanreddy.D November 22, 2023

Dear Team,

Trust you are doing well.

I would like to transfer the repository from Shubham_X1012892 workspace to omniitcommerce by keeping the repository and it's branches with in the workspace Shubham_X1012892. It means cloning of the repository from Shubham_X1012892 to omniitcommerce. Please advise.

 

Thanks

Harsha

 

1 answer

1 accepted

0 votes
Answer accepted
Aron Gombas _Midori_
Community Champion
November 23, 2023

The way you describe it is not a "transfer" but a copy of the original repository in another workspace.

For that:

  1. Create the target repository in the target workspace
  2. Git clone the code from the source repository to a local clone
  3. At this point, the remote "origin" in the local clone points to the source repo
  4. Add another remote "new"
  5. Git push the code to "new"

From this point, you can work on the local clone and selectively push to "origin", to "new" or both.

Harshavardhanreddy.D January 30, 2024

Apologies for delay in response. Thanks @Aron Gombas _Midori_ for your response. 

This will allow to push one branch at a time. Is there anyway to pull all the branches from one repository to another repository?

 

Thanks

Harsha

 

Aron Gombas _Midori_
Community Champion
January 31, 2024

Hmm, no.

When you clone a repository, it will clone all branches and then the push will be push all branches. It will be a complete "copy". That's the default behavior of Git.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events