SourceTree commit and push auto

Hi !

Is it possible to send my updated files without having to click on "commit" and "push" ?
SourceTree can it automatically commit on bitbucket while there is not conflict ?

Thanks

2 answers

This widget could not be displayed.

Hi Melanie,

Sure is, on the commit sheet you can click on a checkbox towards the bottom of the sheet that says "Push commit immediately to.." and depending on whether you're using Mercurial or Git there may or may not be a drop-down list of where to push it to.

Hope that helps

This widget could not be displayed.

Thank you but I thought more to not need click on sourceTree. When my file is updated (local), it's automatically sent to bitbucket via sourcetree which alert me if conflict.

I'm not sure how that would work, Melanie. This wouldn't be done via SourceTree if that was the case, you'd need to call Git/Hg directly by using some OS-level hook that looked for files being saved in a specific directory and then calling Git/Hg itself.

I wouldn't recommend this, however, as file saves are so frequent you'd be committing and pushing constantly. At what point would you commit and save? The moment the file was saved?

I update my files really often. This was to able to work in team without problems to overwrite the work of the others. We would like send our code on server when we save file i.e commit + push when we save file.

It's to save a little time.

This is really not how DVCS is supposed to work, one of the major advantages of it is that you work locally most of the time and push / pull less frequently. It sounds like you really need some kind of real-time collaboration tool like https://squadedit.com/

Ok, I will see. Thanks a lot !

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

87 views 13 7
Join discussion

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