Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I disable history rewriting? (rebase, forced commit)

Yaron Kaplan June 4, 2019

I don't want this to happen:

 

$ git pull

[...]
+ b8e0d3a...848d220 v3_31_0 -> origin/v3_31_0 (forced update)
Already up-to-date.

 Because forced update means conflicts - and also you can't find who did it due to git shortcomings.

How do I disable this?

There used to be a way using branch permissions, mentioned here, but the options I see now don't include a way to disable history rewriting (screenshot included below).

Thanks in advance.

branch permissions.PNG

2 answers

1 accepted

1 vote
Answer accepted
Yaron Kaplan June 9, 2019

Update: Apparently you need to put something in the Write Access field and only after that you can see the option to enable/disable history rewriting.

1 vote
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 4, 2019

You're looking at Bitbucket Cloud (screenshot) but you've linked to Bitbucket Server documentation. Please see https://confluence.atlassian.com/bitbucket/branch-permissions-385912271.html instead.

Yaron Kaplan June 4, 2019

Thanks for your response.

However, the link you sent me also seems out of sync with actual service. The article mentions the Allow rewriting branch history option but I can't see it in the repository settings page.

Like Michael Reid likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events