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

This widget could not be displayed.

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 May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

884 views 2 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