hi i need a help for implement below scennario,
i have a main source code master branch named A.
i also have child branches named as B,C,D.
now i have same code on all of my branches there is one part custome code on my child branches(B,C,D).
Now main thing i want to do is when i am changing my source code in master branch A. then it should automatically change in child branch B,C,D. but the custom code on that branches should remain untouched.
and changes in B,C,D don't affect the A .
FORK is not working for this please help me about this scenario ASAP
Please give me the solution on that and tell me how can i implement this scenario in bitbucket???????
Git does not work this way - Keeping the code changes in one branch separate from others is the intended behaviour of git. To do what you want, you'd have to have a script that gets kicked off by a web hook from the server (or you just run a cron periodically) that checks if there is any code on A that is not on B,C,D (e.g. `git log A ^B`) and if so, checkout the branch and merge A into it.
FYI: The Fork syncing feature in Bitbucket Server will only keep branches in sync if you do not have any changes in them specific to your repository.
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events