Forums

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

Is it possible to remove the Commit button from the toolbar?

Darrenj
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!
November 6, 2025

We are using Sourcetree on a test PC to pull down our latest changes to a system and test them. We only ever pull via Sourcetree on this box.
Works fine but the Commit button indicates "11" and it's worrying that one of us could accidentally commit whatever those changes are. It would be ideal if we could just take the commit button out completely on that computer. Is that possible?
Thanks

1 answer

0 votes
Tomislav Tobijas
Community Champion
November 6, 2025

Hi @Darrenj ,

I think you won't be able to configure that in Sourcetree. I've tried checking open suggestions, but couldn't find anything related. 
*note that you could open a new suggestion by yourself and then share the link here

I guess some alternatives would be:

  • Make the repo read-only > set it to read-only at the filesystem level
  • Remove commit rights in the remote (prob. best choice)
  • Disable commits at the git config level

All options wouldn't hide the button, but would prevent from doing any commits from that particular device/machine.

Cheers,
Tobi

Darrenj
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!
November 6, 2025

Hi Tobi,

We can't make the repo read-only because we do commit to it from other machines.
How would we action either of the other options?

  • Remove commit rights in the remote
  • Disable commits at the git config level

We are using BitBucket, if that affects the answer.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events