Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Permission on project level Bitbucket server

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???????

 

2 answers

0 votes

Hi,

It sounds like what you're after is forks, but you say forks don't work for this - can you explain why?

Cheers,

Christian

Premier Support Engineer

Atlassian

hi Christian,

 

I have tried to make a fork of my repo and fork repo is also created but then while i am changing anything in fork repo that won't reflect automatically in my parent repo

that's why i think fork is not working. plz guide me if i am doing any mistake to use fork

Hi team,

 

Kindly help me to solve above listed scenario ASAP.

0 votes
mwatson Atlassian Team Jun 13, 2018

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

987 views 20 11
Read article

Community Events

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

Events near you