Notifications on branch checkout

Hello,

Since GIT doesn't support branch locking, we we're wondering if there was a way to setup email notifications or something similar when somebody checkout a brack? If not, any alternative you guys can recommend?

1 answer

Git and Mercurial are decentralized. This means that when a user clones a repository, he now has a copy of the repository that he owns. Branch locking makes no sense in these systems, because you (the locker) don't own the repository where you want branches to be locked, that user does.

You also can't set up triggers when a person checks out a branch, because they are checking out from that local repository that they own, not yours.

I see what you mean, I totally overlooked that checking out ocurres locally. It would had been a nice addition though to avoid a lot of merging conflicts. Oh well, back to communication 101.

If somebody wants to work on a branch without interference, and you are using a central repository, that person just needs to avoid pushing their branch to that central repo.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

232 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot