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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
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 ...

799 views 0 4
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