Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Hi, how to move branches from one repository to another repository

Ramesh Yala May 23, 2019

I have two repository's basically,  i am move one repository2 to repository1 ,

I am successfully migrate rep2 to rep1,  but rep2 have non merged branches how i am move to rep1?

2 answers

1 accepted

0 votes
Answer accepted
Ramesh Yala May 24, 2019

i can solve this issue using git patch.

#repro1
git format-path <branch name>

it will create one patch file, use this second directory
#repo2

git am --ignore-space-change --ignore-whitespace --reject --directory='<moving directory name>' ..<patch filename>

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2019

Hi Ramesh!

Branches can not be moved from one repository to the other. That kind of data (similarly to what happens to pull requests) has to be recreated manually.

I hope this answers your question, Ramesh. Let us know if you need anything else.

Best regards,

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events