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 ?


2 answers

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

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

Ok, I will see. Thanks a lot !

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Canada

Happy New Year - First AUG of the year - great success

Hi Everyone, Hope everyone had a great holiday season and is ready for an exciting 2019.  We had our first AUG last night featuring Tempo Timesheets.  A great presentation and lots of int...

17 views 0 1
View post

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