In a repository A
the folder sub
is included as git subtree of the repository S
- pointing to master
branch.
I have forked repository A
into F
. Now I want to do one of the following in F
:
- change
sub
to use a different branch of S
(ie develop
branch)
- or: change
sub
to use a different repository altogether
Is either one of these possible, and if so, how? Will there be any side effects I should know of?
And how can I make sure my subtree change won't be updated in repository A
when I merge my changes (pull request)? I mean besides isolating commits.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…