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

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 https://squadedit.com/

Ok, I will see. Thanks a lot !

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

363 views 4 10
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