Notifications on branch checkout


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
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,231 views 4 2
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