Git to isolate a branch in a different repository?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
There is a local git repository, in it several branches, there is a need to freeze the development of one single branch, and remove it from the main repository.


How can we make this thread into another repository while keeping the history of this branch in the new repository?
by | 5 views

2 Answers

0 like 0 dislike
# add a new empty repository list remote $ git remote add archive $ARCHIVE_REPO_URL $ git push archive archive_branch $ git branch-d archive_branch # to delete the branch locally (optional) $ git push origin :archive_branch # to delete a branch in the main repository 
by
0 like 0 dislike
Well, usually the place where there are archival repositories, they still managed, so what I meant by zero-point "ask the administrator to add an entry to your gitosis/gitolite" or something like that. While Yes, it can be.
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
27,911 users