A
A
Another403779792021-10-05 15:25:13
git
Another40377979, 2021-10-05 15:25:13

Gitlab how to checkout a branch from one repository to another repository into a branch?

There are two sites.
Example
www.site.ru
www.site2.ru
Both have a different git. I want to move the master branch from the www.site2.ru site to a new branch in the www.site1.ru repository (for example, the test branch). How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dwdraugr, 2021-10-05
@Another40377979

git clone www.site2.ru
git remote add newsite www.site1.ru
git push newsite master:test

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question