Forums

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

How to make it ask an extra confirmation when editing files online in bitbucket DC

KAZUNORI KOBAYASHI
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 17, 2026
While I was editing a file on bitbucket online and pressed the commit button, it asked me to input the commit message that may contain newlines, so I pressed enter button and it is handled as I press the "Commit" button, and the commit was created with a incomplete commit message and the operation cannot be undone. I actually understood the risk of editing online and was careful, but I didn't have an idea that pressing enter may enter that without confirmation. The user may not be clear whether the cursor is on the "Commit" button or the textbox so even when the cursot is on the "commit" button, it should ask an extra confirmation because users may press enter to intend to input a newline. If there's no setting to do this, I will send a requrest for the new feature.

2 answers

0 votes
farhan faisal
August 17, 2026

I agree this is a valid feature request for Bitbucket Data Center. When the commit message supports multiple lines, pressing Enter can unintentionally trigger the Commit action if focus is on the button. An extra confirmation before creating the commit would provide a useful safeguard, especially for users editing files directly in the browser.

A configurable confirmation setting for online commits could also give administrators flexibility based on their team's workflow.

At Famous Stages, where teams work with professional event-production equipment such as Global Truss systems, portable stages, ground support, and ADJ LED video walls, avoiding preventable configuration mistakes is equally important. Clear workflows and confirmation steps can help reduce errors when managing complex technical projects.

0 votes
Viswanathan Ramachandran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 17, 2026

Hi @KAZUNORI KOBAYASHI 

This is a UX design flaw/trap. You're welcome to submit a ticket to them stating your modal. 

However, here are a few practical ways to prevent this from happening:

If you have admin access (or can speak to your Bitbucket administrator), you can set up guardrails so the server automatically rejects short or incomplete messages:

  • Native Jira Integration: Enable Repository settings > Jira issues to reject any commit message that doesn't include a valid Jira issue key.
  • Commit Checker Apps: Use Marketplace tools like Yet Another Commit Checker or Better Commit Policy to enforce a minimum character length or standard formats (like Conventional Commits).
  • ScriptRunner / Git Hooks: Implement a custom pre-receive hook to reject single-line or overly short commit messages.

Fix the Incomplete Commit Message

Since Git history cannot be edited directly in the web UI without rewriting history, you can fix the message locally via CLI:

git fetch origin
git checkout <your-branch>
git commit --amend -m "Your complete commit message"
git push --force-with-lease origin <your-branch>

Important Caveats to Keep in Mind

  • Branch Restrictions: If the online edit was done on a protected branch like main or master, Bitbucket may block force-pushing depending on repository permissions. An admin would either need to temporarily allow force pushes, or you'd need to live with the bad commit message.
  • Team Coordination: If someone else on your team already ran git pull and downloaded the incomplete commit message onto their machine before you force-pushed the fix, their local history will diverge.
  • Force-pushing is safest on personal feature branches or feature branches where team members are aware of the update.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events